nxos_vlan ValueError fix (#35559)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha
2018-02-02 20:51:34 +05:30
committed by GitHub
parent e8755175d7
commit a4b7df70c7

View File

@@ -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])