example/vsrx-12.1.x47.rb in junoser-0.2.8 vs example/vsrx-12.1.x47.rb in junoser-0.2.9

- old
+ new

@@ -22956,10 +22956,13 @@ "mld-snooping" ( juniper_protocols_mld_snooping ), "layer2-control" ( juniper_protocols_layer2_control + ), + "sflow" ( + juniper_protocols_sflow ) ) end rule(:admin_group_include_exclude) do @@ -38425,9 +38428,55 @@ ) ) ).as(:oneline), "level" arg, "flag" ("active-directory-authentication" | "configuration" | "db" | "ip-user-mapping" | "ip-user-probe" | "ipc" | "user-group-mapping" | "wmic" | "all").as(:oneline) + ) + ) + ) +end + +rule(:juniper_protocols_sflow) do + c( + "agent-id" ipaddr, + "collector" ipaddr ( + "udp-port" arg + ), + "interfaces" arg ( + c( + "polling-interval" arg, + "sample-rate" ( + c( + "egress" arg, + "ingress" arg, + ) + ) + ) + ), + "polling-interval" arg, + "sample-rate" ( + c( + "egress" arg, + "ingress" arg + ) + ), + "source-ip" ipaddr, + "disable-sw-rate-limiter", + "traceoptions" ( + c( + "file" ( + c( + "filename" arg, + "files" arg, + "no-stamp", + "replace", + "size" arg, + "world-readable", + "no-world-readable", + arg + ) + ), + "flag" ("all" | "client-server" | "configuration" | "interface" | "rtsock").as(:oneline) ) ) ) end