lib/junoser/ruler.rb in junoser-0.2.2 vs lib/junoser/ruler.rb in junoser-0.2.3

- old
+ new

@@ -52,11 +52,11 @@ str.gsub!(/("ssh-\S+") arg/) { "#$1 (quote | arg)" } str.gsub! '"description" arg', '"description" (quote | arg)' str.gsub! '"as-path-prepend" arg', '"as-path-prepend" (quote | arg)' str.gsub! '"path-list" arg (', 'b(ipaddr,' - str.gsub!(/(s\(\s*)"address" \(\s*arg\s*\)/) { "#{$1}arg" } + str.gsub!(/(s\(\s*)"address" arg/) { "#{$1}arg" } str.gsub!(/^(\s*"idle-timeout" \(\s*c\(\s*c\(\s*"forever",\s*)"timeout" arg/) { "#{$1}arg" } str = omit_label(str, 'contents', 'syslog_object') str = omit_label(str, 'interface', 'cos_interfaces_type') str = omit_label(str, 'interface', 'ir_interfaces_type') @@ -85,10 +85,10 @@ end %w[file confederation].each do |key| str.gsub!(/^(\s*"#{key}" \(\s*)c\(\s*arg,/) { "#{$1}sca(" } end %w[exact longer orlonger].each do |key| - str.gsub!(/^(\s*"#{key}") \(\s*arg\s*\)/) { "#{$1}" } + str.gsub!(/^(\s*"#{key}") arg/) { "#{$1}" } end str.gsub!(/^(\s*)"inline-services"/) do format(['"inline-services" (', ' "bandwidth" ("1g" | "10g")',