lib/junoser/ruler.rb in junoser-0.5.5 vs lib/junoser/ruler.rb in junoser-0.5.6
- old
+ new
@@ -54,10 +54,11 @@
#
str.gsub!(/("ssh-\S+") arg/) { "#{$1} (quote | arg)" }
str.gsub! '"message" arg', '"message" (quote | arg)'
str.gsub! '"description" arg', '"description" (quote | arg)'
str.gsub! '"as-path-prepend" arg', '"as-path-prepend" (quote | arg)'
+ str.gsub! '"tcp-flags" arg', '"tcp-flags" (quote | arg)'
str.gsub!(/^(\s*)"as-path" arg \(\s*c\(\s*arg/) do
format(['"as-path" arg (',
' c(',
' quote | arg'], $1)
@@ -243,11 +244,11 @@
# Fix .xsd: argument of "system license keys key" can be quoted
str.gsub!(/^(rule\(:license_object\) do.*?"key") arg/m) { "#{$1} (quote | arg)" }
# Fix .xsd: "prefix-limit teardown"
- str.gsub!(/^(\s*)"teardown" (\(.*?as\(:oneline\)\s*\)\s*\))/m) do
- "#{$1}\"teardown\" arg #{$2},\n#{$1}\"teardown\""
+ str.gsub!(/^((\s*)"maximum" arg,)\s*"teardown" (\(.*?as\(:oneline\)\s*\)\s*\))/m) do
+ "#{$1}\n#{$2}\"teardown\" arg #{$3},\n#{$2}\"teardown\""
end
# Fix .xsd: faster interface speed support
str.gsub! '"400g" | "oc', '"400g" | "800g" | "oc'
str.gsub! '"400G"', '"400G" | "800G"'