Fix IF_ETH_REGEX to allow 1/1 and 1/1/1 interfaces (#51438)

This commit is contained in:
Thomas Stewart 2019-01-31 11:23:42 +00:00 committed by Ganesh Nalawade
parent 042aeba46c
commit 8719866ae8

View file

@ -132,7 +132,7 @@ from ansible.module_utils.network.onyx.onyx import get_interfaces_config
class OnyxInterfaceModule(BaseOnyxModule):
IF_ETH_REGEX = re.compile(r"^Eth(\d+\/\d+|Eth\d+\/\d+\d+)$")
IF_ETH_REGEX = re.compile(r"^Eth(\d+\/\d+|\d+\/\d+\/\d+)$")
IF_VLAN_REGEX = re.compile(r"^Vlan (\d+)$")
IF_LOOPBACK_REGEX = re.compile(r"^Loopback (\d+)$")