mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
nxos_vlan ValueError fix (#35559)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
e8755175d7
commit
a4b7df70c7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue