Skip to content

Commit

Permalink
fix eos_l2_interface invalid command (#50644)
Browse files Browse the repository at this point in the history
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 1400d16)
  • Loading branch information
trishnaguha authored and abadger committed Apr 4, 2019
1 parent 5d73a98 commit 49d6a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/eos/eos_l2_interface.py
Expand Up @@ -176,9 +176,9 @@ def map_obj_to_commands(updates, module):
commands.append('switchport trunk allowed vlan {0}'.format(trunk_allowed_vlans))
else:
if obj_in_have['native_vlan']:
commands.append('not switchport trunk native vlan {0}'.format(obj_in_have['native_vlan']))
commands.append('no switchport trunk native vlan {0}'.format(obj_in_have['native_vlan']))
if obj_in_have['trunk_allowed_vlans']:
commands.append('not switchport trunk allowed vlan {0}'.format(obj_in_have['trunk_allowed_vlans']))
commands.append('no switchport trunk allowed vlan {0}'.format(obj_in_have['trunk_allowed_vlans']))
commands.append('switchport access vlan {0}'.format(access_vlan))
else:
if mode == 'access':
Expand Down

0 comments on commit 49d6a18

Please sign in to comment.