diff --git a/lib/puppet/parser/functions/validate_network_vlan_ranges.rb b/lib/puppet/parser/functions/validate_network_vlan_ranges.rb index 013ee085d..f363ef52b 100644 --- a/lib/puppet/parser/functions/validate_network_vlan_ranges.rb +++ b/lib/puppet/parser/functions/validate_network_vlan_ranges.rb @@ -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