lib/junoser/js_ruler.rb in junoser-0.5.6 vs lib/junoser/js_ruler.rb in junoser-0.6.0

- old
+ new

@@ -224,9 +224,14 @@ # set forwarding-options dhcp-relay server-group str.gsub!(/^(rule\(:(?:v6_)?server_group_type\) do)\n(.*?)\nend/m) do "#{$1}\n arg.as(:arg) (\n#{$2}\n )\nend" end + # set interfaces xxx enable + str.gsub!(/^(rule\(:interfaces_type\) do\s*[^\n]*\s*c\()(\s*)/m) do + %[#{$1}#{$2}"enable",#{$2}] + end + str end def finalize(lines) lines = balance_parenthesis(lines)