Skip to content

Commit 6ca5595

Browse files
authored
Merge pull request #331 from unibonn/redhat-interface-regex-underscore
network_config::redhat: allow "_" in network interface names
2 parents e763cc4 + 1c62af8 commit 6ca5595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/network_config/redhat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ALIAS_REGEX = %r{.{1,12}(?<!~|\.bak|\.old|\.orig|\.rpmnew|\.rpmorig|\.rpmsave)}
3030

3131
# @return [Regexp] The regular expression for interface scripts on redhat systems
32-
SCRIPT_REGEX = %r{\Aifcfg-[a-z]+[a-z\d]+(?::#{ALIAS_REGEX}|\.#{VLAN_RANGE_REGEX})?\Z}
32+
SCRIPT_REGEX = %r{\Aifcfg-[a-z]+[a-z_\d]+(?::#{ALIAS_REGEX}|\.#{VLAN_RANGE_REGEX})?\Z}
3333

3434
NAME_MAPPINGS = {
3535
ipaddress: 'IPADDR',

0 commit comments

Comments
 (0)