File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,12 @@ def process_word(str)
161161 end
162162
163163 def process_reserved_word ( str )
164- # ieee-802.3ad -> 802.3ad
164+ # ieee-802.3ad -> 802.3ad
165165 str . gsub! 'ieee-802.3ad' , '802.3ad'
166166
167+ # end-range -> to
168+ str . gsub! '"end-range"' , '"to"'
169+
167170 # "policy | Define a policy context from this zone" -> "from-zone | Define a policy context from this zone"
168171 str . gsub! 'policy | Define a policy context from this zone' , 'from-zone | Define a policy context from this zone'
169172 # "to-zone-name | Destination zone" -> "to-zone | Destination zone"
Original file line number Diff line number Diff line change @@ -5324,7 +5324,7 @@ def enum(object)
53245324 a(str("member"), arg),
53255325 b(a(str("member-range"), arg),
53265326 sc(
5327- b(str("end-range "),
5327+ b(str("to "),
53285328 interface_device
53295329 )
53305330 )
@@ -43080,7 +43080,7 @@ def enum(object)
4308043080 a(str("member"), arg),
4308143081 b(a(str("member-range"), arg),
4308243082 sc(
43083- b(str("end-range "),
43083+ b(str("to "),
4308443084 interface_device
4308543085 )
4308643086 )
@@ -46532,7 +46532,7 @@ def enum(object)
4653246532 a(str("member"), arg),
4653346533 b(a(str("member-range"), arg),
4653446534 sc(
46535- b(str("end-range "),
46535+ b(str("to "),
4653646536 interface_device
4653746537 )
4653846538 )
Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ def process_reserved_element(str)
180180 # Fix .xsd: "icmpv6" is also acceptable
181181 str . gsub! '"icmp6" |' , '"icmp6" | "icmpv6" |'
182182
183+ # Fix .xsd: "end-range" of "member-range"
184+ str . gsub! '"end-range"' , '"to"'
185+
183186 #
184187 # Fix .xsd: "arg" is missing
185188 #
Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ class TestValidStatements < Test::Unit::TestCase
154154 set protocols bgp group foo family inet unicast prefix-limit teardown 80 idle-timeout
155155 set protocols bgp group foo family inet unicast prefix-limit teardown 80 idle-timeout 60
156156 set protocols bgp group foo family inet unicast prefix-limit teardown 80 idle-timeout forever
157+
158+ set interfaces interface-range foo member-range ge-0/0/0 to ge-0/0/2
157159 EOS
158160
159161 config . split ( "\n " ) . each do |l |
You can’t perform that action at this time.
0 commit comments