lib/junoser/parser.rb in junoser-0.1.5 vs lib/junoser/parser.rb in junoser-0.1.6
- old
+ new
@@ -18790,16 +18790,16 @@
a(str("color2"), arg),
a(str("local-preference"), arg),
b(str("policy"),
policy_algebra
),
- b(str("route-filter"),
+ b(a(str("route-filter"), arg),
control_route_filter_type
- ),
- b(str("source-address-filter"),
+ ).as(:oneline),
+ b(a(str("source-adress-filter"), arg),
control_source_address_filter_type
- ),
+ ).as(:oneline),
b(str("prefix-list"),
control_prefix_list_type
),
b(str("prefix-list-filter"),
control_prefix_list_filter_type
@@ -19151,16 +19151,16 @@
a(str("color2"), arg),
a(str("local-preference"), arg),
b(str("policy"),
policy_algebra
),
- b(str("route-filter"),
+ b(a(str("route-filter"), arg),
control_route_filter_type
- ),
- b(str("source-address-filter"),
+ ).as(:oneline),
+ b(a(str("source-adress-filter"), arg),
control_source_address_filter_type
- ),
+ ).as(:oneline),
b(str("prefix-list"),
control_prefix_list_type
),
b(str("prefix-list-filter"),
control_prefix_list_filter_type
@@ -19811,12 +19811,11 @@
rule(:control_prefix_list_type) do
arg.as(:arg)
end
rule(:control_route_filter_type) do
- s(
- arg,
+ b(
c(
b(str("exact"),
arg
),
b(str("longer"),
@@ -20077,11 +20076,10 @@
)
)
end
rule(:control_source_address_filter_type) do
- s(
- arg,
+ b(
c(
b(str("exact"),
arg
),
b(str("longer"),