File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ def process_reserved_word(str)
168
168
str . gsub! 'policy | Define a policy context from this zone' , 'from-zone | Define a policy context from this zone'
169
169
# "to-zone-name | Destination zone" -> "to-zone | Destination zone"
170
170
str . gsub! 'to-zone-name | Destination zone' , 'to-zone | Destination zone'
171
+ # "system-name | System name override" -> "name | System name override"
172
+ str . gsub! 'system-name | System name override' , 'name | System name override'
171
173
172
174
fix_route_filter ( str )
173
175
Original file line number Diff line number Diff line change @@ -8746,7 +8746,7 @@ def enum(object)
8746
8746
).as(:oneline),
8747
8747
b(str("snmp"),
8748
8748
c(
8749
- a(str("system- name"), arg),
8749
+ a(str("name"), quote | arg),
8750
8750
a(str("description"), quote | arg),
8751
8751
a(str("location"), quote | arg),
8752
8752
a(str("contact"), quote | arg),
@@ -14289,7 +14289,7 @@ def enum(object)
14289
14289
b(str("suppress-tlv-advertisement"),
14290
14290
(str("MANAGEMENT_ADDRESS") | str("SYSTEM_CAPABILITIES") | str("SYSTEM_DESCRIPTION") | str("SYSTEM_NAME") | str("PORT_DESCRIPTION") | str("PORT_ID") | str("CHASSIS_ID"))
14291
14291
),
14292
- a(str("system- name"), arg),
14292
+ a(str("name"), quote | arg),
14293
14293
a(str("system-description"), arg),
14294
14294
a(str("chassis-id"), arg),
14295
14295
b(str("chassis-id-type"),
Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ def process_reserved_element(str)
221
221
str . gsub! ( /"(dest|src|static)-nat-rule-match"/ ) { '"match"' }
222
222
223
223
str
224
+
225
+ # Fix .xsd: "snmp system-name" should be "snmp name"
226
+ str . gsub! '"system-name" arg' , '"name" (quote | arg)'
224
227
end
225
228
226
229
def format ( str , offset = OFFSET )
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ class TestValidStatements < Test::Unit::TestCase
89
89
90
90
set snmp contact "foo bar"
91
91
set snmp location "foo bar"
92
+ set snmp name foo
93
+ set snmp name "foo bar"
92
94
93
95
set protocols bgp minimum-hold-time 10
94
96
set system dump-on-panic
You can’t perform that action at this time.
0 commit comments