Skip to content

Commit

Permalink
network_config::redhat: allow "_" in network interface names
Browse files Browse the repository at this point in the history
"_" is an allowed character in addition to a-z and digits.
  • Loading branch information
olifre committed Sep 19, 2024
1 parent 08f5263 commit 1c62af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/network_config/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ALIAS_REGEX = %r{.{1,12}(?<!~|\.bak|\.old|\.orig|\.rpmnew|\.rpmorig|\.rpmsave)}

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

NAME_MAPPINGS = {
ipaddress: 'IPADDR',
Expand Down

0 comments on commit 1c62af8

Please sign in to comment.