Skip to content

Commit

Permalink
Merge pull request #331 from unibonn/redhat-interface-regex-underscore
Browse files Browse the repository at this point in the history
network_config::redhat: allow "_" in network interface names
  • Loading branch information
treydock authored Oct 21, 2024
2 parents e763cc4 + 1c62af8 commit 6ca5595
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 6ca5595

Please sign in to comment.