Don't be too strict for vlan_ranges
VLAN range can be also in format of physical network or with only single ID. This patch makes those values pass the validation For more info please check https://bugzilla.redhat.com/show_bug.cgi?id=1066549 Change-Id: I054fbd45ac2228a3a579c08cdd617d970abcaddf
This commit is contained in:
parent
f3a4b53a41
commit
8fd57075d1
@ -36,6 +36,9 @@ module Puppet::Parser::Functions
|
||||
if ((second_id - first_id) < 0 )
|
||||
raise Puppet::Error, "network vlan ranges are invalid."
|
||||
end
|
||||
elsif m = /^([^:]+)?(:\d+)?$/.match(range)
|
||||
# Either only name of physical network or single vlan id has
|
||||
# been passed. This is also correct.
|
||||
elsif range
|
||||
raise Puppet::Error, "network vlan ranges are invalid."
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user