File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
lib/puppet/provider/network_config
fixtures/provider/network_config/redhat_spec/network-scripts
unit/provider/network_config Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2222 SCRIPT_DIRECTORY = '/etc/sysconfig/network-scripts' . freeze
2323
2424 # The valid vlan ID range is 0-4095; 4096 is out of range
25- VLAN_RANGE_REGEX = %r{\d {1,3}|40[0-9] [0-5]}
25+ VLAN_RANGE_REGEX = %r{[1-3]? \d {1,3}|40[0-8] \d |409 [0-5]}
2626
2727 # @return [Regexp] The regular expression for interface scripts on redhat systems
2828 SCRIPT_REGEX = %r{\A ifcfg-[a-z]+[a-z\d ]+(?::\d +|\. #{ VLAN_RANGE_REGEX } )?\Z }
Original file line number Diff line number Diff line change 1+ VLAN=yes
2+ DEVICE=bond1.1001
3+ BOOTPROTO=static
4+ NETMASK=255.255.255.0
5+ IPADDR=172.24.66.1
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ def fixture_data(file)
3030 valid_files = %w[ ifcfg-bond0 ifcfg-bond1 ifcfg-eth0 ifcfg-eth1 ifcfg-eth2
3131 ifcfg-eth3 ifcfg-vlan100 ifcfg-vlan100:0 ifcfg-vlan200
3232 ifcfg-vlan300 ifcfg-vlan400 ifcfg-vlan500 ifcfg-eth0.0
33- ifcfg-eth0.1 ifcfg-eth0.4095 ifcfg-eth0:10000000 ]
33+ ifcfg-eth0.1 ifcfg-eth0.4095 ifcfg-eth0:10000000
34+ ifcfg-bond1.1001 ]
3435
3536 invalid_files = %w[ .ifcfg-bond0.swp ifcfg-bond1~ ifcfg-vlan500.bak
3637 ifcfg-eth0.4096 ]
You can’t perform that action at this time.
0 commit comments