nxos_vlan ValueError fix (#35559)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/35561/merge
Trishna Guha 7 years ago committed by GitHub
parent e8755175d7
commit a4b7df70c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save