lib/junoser/ruler.rb in junoser-0.4.3 vs lib/junoser/ruler.rb in junoser-0.4.4
- old
+ new
@@ -219,9 +219,12 @@
# Fix .xsd: keywords "dest-nat-rule-match", "src-nat-rule-match", "static-nat-rule-match" are wrong
str.gsub!(/"(dest|src|static)-nat-rule-match"/) { '"match"' }
str
+
+ # Fix .xsd: "snmp system-name" should be "snmp name"
+ str.gsub! '"system-name" arg', '"name" (quote | arg)'
end
def format(str, offset = OFFSET)
case str
when String