lib/junoser/ruler.rb in junoser-0.3.8 vs lib/junoser/ruler.rb in junoser-0.3.9

- old
+ new

@@ -159,9 +159,15 @@ format(['"as-path" (', ' c(', ' "path" (quote | arg)'], $1) end + str.gsub!(/^(\s*)"policy" \(\s*s\(\s*arg,\s*"to-zone-name" arg,\s*c\(\s*"policy" \(\s*policy_type\s*\)\s*\)/) do + format(['b(s("from-zone", arg, "to-zone", arg),', + ' b("policy", policy_type', + ], $1) + end + str end def format(str, offset=OFFSET) case str