example/vsrx-12.1.x47.rb in junoser-0.2.2 vs example/vsrx-12.1.x47.rb in junoser-0.2.3
- old
+ new
@@ -2105,19 +2105,15 @@
).as(:oneline)
)
),
"attributes-match" (
s(
- "from-event-attribute" (
- arg
- ),
+ "from-event-attribute" arg,
"condition" (
("equals" | "starts-with" | "matches")
),
- "to-event-attribute-value" (
- arg
- )
+ "to-event-attribute-value" arg
)
).as(:oneline),
"then" (
c(
"ignore",
@@ -2130,13 +2126,11 @@
"upload" (
s(
"filename" (
arg
),
- "destination" (
- arg
- ),
+ "destination" arg,
c(
"user-name" arg,
"transfer-delay" arg,
"retry-count" (
c(
@@ -3891,16 +3885,12 @@
"flag" ("configuration" | "routing-socket" | "compilation" | "ipc" | "rules" | "lookup" | "all").as(:oneline)
)
),
"policy" (
s(
- "from-zone-name" (
- arg
- ),
- "to-zone-name" (
- arg
- ),
+ "from-zone-name" arg,
+ "to-zone-name" arg,
c(
"policy" (
policy_type
)
)
@@ -5657,10 +5647,16 @@
end
rule(:chassis_fpc_type) do
arg.as(:arg) (
c(
+ "error" ("fatal" | "major" | "minor") (
+ c(
+ "threshold" arg,
+ "action" ("alarm" | "disable-pfe" | "offline-pic" | "log" | "get-state" | "offline" | "reset")
+ )
+ ),
"sanity-poll",
"pic" (
chassis_pic_type
),
"pfe" (
@@ -5828,16 +5824,12 @@
rule(:chassis_fibre_channel_type) do
c(
"port",
"port-range" (
s(
- "port-range-low" (
- arg
- ),
- "port-range-high" (
- arg
- )
+ "port-range-low" arg,
+ "port-range-high" arg
)
)
)
end
@@ -7785,13 +7777,11 @@
"discard",
"traffic-class" arg,
"next" arg,
"logical-system" (
s(
- "logical-system-name" (
- arg
- ),
+ "logical-system-name" arg,
c(
"routing-instance" (
c(
"routing-instance-name" arg,
"topology" arg
@@ -8336,13 +8326,11 @@
)
),
"next" arg,
"logical-system" (
s(
- "logical-system-name" (
- arg
- ),
+ "logical-system-name" arg,
c(
"routing-instance" (
c(
"routing-instance-name" arg,
"topology" arg
@@ -10428,16 +10416,12 @@
arg.as(:arg) (
c(
"weight" arg,
"interface" (
s(
- "logical-interface-name" (
- arg
- ),
- "secondary-ip-address" (
- arg
- )
+ "logical-interface-name" arg,
+ "secondary-ip-address" arg
)
)
)
)
end
@@ -18144,16 +18128,12 @@
"flag" ("configuration" | "routing-socket" | "compilation" | "ipc" | "rules" | "lookup" | "all").as(:oneline)
)
),
"policy" (
s(
- "from-zone-name" (
- arg
- ),
- "to-zone-name" (
- arg
- ),
+ "from-zone-name" arg,
+ "to-zone-name" arg,
c(
"policy" (
policy_type
)
)
@@ -18677,22 +18657,14 @@
c(
"from" (
c(
"vsi-manager" (
s(
- "vsi-manager-id" (
- arg
- ),
- "vsi-type" (
- arg
- ),
- "vsi-version" (
- arg
- ),
- "vsi-instance" (
- arg
- )
+ "vsi-manager-id" arg,
+ "vsi-type" arg,
+ "vsi-version" arg,
+ "vsi-instance" arg
)
)
)
),
"then" (
@@ -18949,32 +18921,18 @@
)
).as(:oneline),
"community" (
s(
c(
- "equal-literal" (
- arg
- ),
- "set" (
- arg
- ),
- "plus-literal" (
- arg
- ),
- "add" (
- arg
- ),
- "minus-literal" (
- arg
- ),
- "delete" (
- arg
- )
+ "equal-literal" arg,
+ "set" arg,
+ "plus-literal" arg,
+ "add" arg,
+ "minus-literal" arg,
+ "delete" arg
),
- "community-name" (
- arg
- )
+ "community-name" arg
)
).as(:oneline),
"damping" arg,
"as-path-prepend" arg,
"as-path-expand" (
@@ -19312,32 +19270,18 @@
)
).as(:oneline),
"community" (
s(
c(
- "equal-literal" (
- arg
- ),
- "set" (
- arg
- ),
- "plus-literal" (
- arg
- ),
- "add" (
- arg
- ),
- "minus-literal" (
- arg
- ),
- "delete" (
- arg
- )
+ "equal-literal" arg,
+ "set" arg,
+ "plus-literal" arg,
+ "add" arg,
+ "minus-literal" arg,
+ "delete" arg
),
- "community-name" (
- arg
- )
+ "community-name" arg
)
).as(:oneline),
"damping" arg,
"as-path-prepend" arg,
"as-path-expand" (
@@ -19508,23 +19452,15 @@
).as(:oneline)
end
rule(:control_prefix_list_filter_type) do
s(
- "list_name" (
- arg
- ),
+ "list_name" arg,
c(
- "exact" (
- arg
- ),
- "longer" (
- arg
- ),
- "orlonger" (
- arg
- )
+ "exact" arg,
+ "longer" arg,
+ "orlonger" arg
),
c(
"metric" (
c(
c(
@@ -19646,32 +19582,18 @@
)
).as(:oneline),
"community" (
s(
c(
- "equal-literal" (
- arg
- ),
- "set" (
- arg
- ),
- "plus-literal" (
- arg
- ),
- "add" (
- arg
- ),
- "minus-literal" (
- arg
- ),
- "delete" (
- arg
- )
+ "equal-literal" arg,
+ "set" arg,
+ "plus-literal" arg,
+ "add" arg,
+ "minus-literal" arg,
+ "delete" arg
),
- "community-name" (
- arg
- )
+ "community-name" arg
)
).as(:oneline),
"damping" arg,
"as-path-prepend" arg,
"as-path-expand" (
@@ -19770,35 +19692,19 @@
arg.as(:arg)
end
rule(:control_route_filter_type) do
s(
- "address" (
- arg
- ),
+ "address" arg,
c(
- "exact" (
- arg
- ),
- "longer" (
- arg
- ),
- "orlonger" (
- arg
- ),
- "upto" (
- arg
- ),
- "through" (
- arg
- ),
- "prefix-length-range" (
- arg
- ),
- "address-mask" (
- arg
- )
+ "exact" arg,
+ "longer" arg,
+ "orlonger" arg,
+ "upto" arg,
+ "through" arg,
+ "prefix-length-range" arg,
+ "address-mask" arg
),
c(
"metric" (
c(
c(
@@ -19920,32 +19826,18 @@
)
).as(:oneline),
"community" (
s(
c(
- "equal-literal" (
- arg
- ),
- "set" (
- arg
- ),
- "plus-literal" (
- arg
- ),
- "add" (
- arg
- ),
- "minus-literal" (
- arg
- ),
- "delete" (
- arg
- )
+ "equal-literal" arg,
+ "set" arg,
+ "plus-literal" arg,
+ "add" arg,
+ "minus-literal" arg,
+ "delete" arg
),
- "community-name" (
- arg
- )
+ "community-name" arg
)
).as(:oneline),
"damping" arg,
"as-path-prepend" arg,
"as-path-expand" (
@@ -20040,32 +19932,18 @@
)
end
rule(:control_source_address_filter_type) do
s(
- "address" (
- arg
- ),
+ "address" arg,
c(
- "exact" (
- arg
- ),
- "longer" (
- arg
- ),
- "orlonger" (
- arg
- ),
- "upto" (
- arg
- ),
- "through" (
- arg
- ),
- "prefix-length-range" (
- arg
- )
+ "exact" arg,
+ "longer" arg,
+ "orlonger" arg,
+ "upto" arg,
+ "through" arg,
+ "prefix-length-range" arg
),
c(
"metric" (
c(
c(
@@ -20187,32 +20065,18 @@
)
).as(:oneline),
"community" (
s(
c(
- "equal-literal" (
- arg
- ),
- "set" (
- arg
- ),
- "plus-literal" (
- arg
- ),
- "add" (
- arg
- ),
- "minus-literal" (
- arg
- ),
- "delete" (
- arg
- )
+ "equal-literal" arg,
+ "set" arg,
+ "plus-literal" arg,
+ "add" arg,
+ "minus-literal" arg,
+ "delete" arg
),
- "community-name" (
- arg
- )
+ "community-name" arg
)
).as(:oneline),
"damping" arg,
"as-path-prepend" arg,
"as-path-expand" (
@@ -21588,16 +21452,12 @@
"inter-area-prefix-import" (
policy_algebra
),
"virtual-link" (
s(
- "neighbor-id" (
- arg
- ),
- "transit-area" (
- arg
- ),
+ "neighbor-id" arg,
+ "transit-area" arg,
c(
c(
"disable"
),
"retransmit-interval" arg,
@@ -22004,16 +21864,12 @@
"inter-area-prefix-import" (
policy_algebra
),
"virtual-link" (
s(
- "neighbor-id" (
- arg
- ),
- "transit-area" (
- arg
- ),
+ "neighbor-id" arg,
+ "transit-area" arg,
c(
c(
"disable"
),
"retransmit-interval" arg,
@@ -25764,16 +25620,12 @@
"inter-area-prefix-import" (
policy_algebra
),
"virtual-link" (
s(
- "neighbor-id" (
- arg
- ),
- "transit-area" (
- arg
- ),
+ "neighbor-id" arg,
+ "transit-area" arg,
c(
c(
"disable"
),
"retransmit-interval" arg,
@@ -27497,16 +27349,12 @@
"inter-area-prefix-import" (
policy_algebra
),
"virtual-link" (
s(
- "neighbor-id" (
- arg
- ),
- "transit-area" (
- arg
- ),
+ "neighbor-id" arg,
+ "transit-area" arg,
c(
c(
"disable"
),
"retransmit-interval" arg,
@@ -27913,16 +27761,12 @@
"inter-area-prefix-import" (
policy_algebra
),
"virtual-link" (
s(
- "neighbor-id" (
- arg
- ),
- "transit-area" (
- arg
- ),
+ "neighbor-id" arg,
+ "transit-area" arg,
c(
c(
"disable"
),
"retransmit-interval" arg,
@@ -29901,11 +29745,11 @@
"input" (
sampling_input_type
),
"family" (
c(
- "inet" (
+ ("inet" | "mpls") (
c(
c(
"disable"
),
"output" (
@@ -29920,12 +29764,11 @@
),
"output" (
sampling_family_inet6_output_type
)
)
- ),
- "mpls"
+ )
)
),
"instance" arg (
c(
"disable",
@@ -30461,16 +30304,12 @@
"key" arg
)
),
"dlv" (
s(
- "domain" (
- arg
- ),
- "trusted-anchor" (
- arg
- )
+ "domain" arg,
+ "trusted-anchor" arg
)
).as(:oneline),
"secure-domains" arg
)
),
@@ -32960,32 +32799,18 @@
)
end
rule(:martian_type) do
s(
- "address" (
- arg
- ),
+ "address" arg,
c(
- "exact" (
- arg
- ),
- "longer" (
- arg
- ),
- "orlonger" (
- arg
- ),
- "upto" (
- arg
- ),
- "through" (
- arg
- ),
- "prefix-length-range" (
- arg
- )
+ "exact" arg,
+ "longer" arg,
+ "orlonger" arg,
+ "upto" arg,
+ "through" arg,
+ "prefix-length-range" arg
),
c(
"allow"
)
).as(:oneline)
@@ -35173,16 +34998,12 @@
arg.as(:arg) (
c(
"description" arg,
"start-date" (
s(
- "start-date" (
- arg
- ),
- "stop-date" (
- arg
- )
+ "start-date" arg,
+ "stop-date" arg
)
),
"daily" (
daily_object
),
@@ -35214,16 +35035,12 @@
rule(:daily_object) do
c(
c(
"start-time" (
s(
- "start-time-value" (
- arg
- ),
- "stop-time" (
- arg
- )
+ "start-time-value" arg,
+ "stop-time" arg
)
),
"exclude",
"all-day"
)
@@ -38078,15 +37895,11 @@
"priority-cost" arg
)
),
"route" (
s(
- "route_address" (
- arg
- ),
- "routing-instance" (
- arg
- ),
+ "route_address" arg,
+ "routing-instance" arg,
c(
"priority-cost" arg
)
)
).as(:oneline)