From a4b7df70c72d0db4df8595b96efec42ed418d5d6 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Fri, 2 Feb 2018 20:51:34 +0530 Subject: [PATCH] nxos_vlan ValueError fix (#35559) Signed-off-by: Trishna Guha --- lib/ansible/modules/network/nxos/nxos_vlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_vlan.py b/lib/ansible/modules/network/nxos/nxos_vlan.py index 7ce2f097e6..cc668dbdbb 100644 --- a/lib/ansible/modules/network/nxos/nxos_vlan.py +++ b/lib/ansible/modules/network/nxos/nxos_vlan.py @@ -404,7 +404,7 @@ def parse_interfaces(module, vlan): interfaces = vlan.get('vlanshowplist-ifidx') if interfaces: for i in interfaces.split(','): - if '-' in i: + if 'eth' in i.lower() and '-' in i: int_range = i.split('-') stop = int((int_range)[1]) start = int(int_range[0].split('/')[1])