From 1e17fbc1da0fb88c5dead7d83de277ea118d7323 Mon Sep 17 00:00:00 2001 From: Jose Luis Carcel <jose.carcel@atos.net> Date: Wed, 26 Jul 2023 08:58:54 +0000 Subject: [PATCH] Added Probes-Agent YANG --- .../drivers/smartnic_probes/probes-agent.yang | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/device/service/drivers/smartnic_probes/probes-agent.yang diff --git a/src/device/service/drivers/smartnic_probes/probes-agent.yang b/src/device/service/drivers/smartnic_probes/probes-agent.yang new file mode 100644 index 000000000..71e1337c4 --- /dev/null +++ b/src/device/service/drivers/smartnic_probes/probes-agent.yang @@ -0,0 +1,44 @@ +probes-agent.yang + +# augment de openconfig probes + +augment /probes/probe { + leaf probe_type { + type enumeration { + enum plain_traffic; + enum morpheus_pipeline; + } + } +} + +augment /probes/probe/tests/test/config { + uses morpheus_pipelines; +} + +grouping morpheus_pipelines { + list morpheus_pipelines { + key name; + uses morpheus_pipeline; + } +} + +grouping morpheus_pipeline { + leaf name { type string; } + leaf num_threads { type uint16; } + // other settings + // https://github.com/nv-morpheus/Morpheus/blob/branch-23.11/examples/abp_pcap_detection/run.py + + list stages { + key name; + uses morpheus_pipeline_stage; + } +} + +grouping morpheus_pipeline_stage { + leaf name { type string; } + // enum stage type + // stage parameters + // soportar custom stages + // https://github.com/nv-morpheus/Morpheus/blob/branch-23.11/examples/abp_pcap_detection/run.py + +} -- GitLab