mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Removes superfluous commands nxos_vlan (#51796)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -212,10 +212,6 @@ def map_obj_to_commands(updates, module):
|
|||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
if obj_in_have:
|
if obj_in_have:
|
||||||
if obj_in_have['mapped_vni'] != 'None':
|
|
||||||
commands.append('vlan {0}'.format(vlan_id))
|
|
||||||
commands.append('no vn-segment')
|
|
||||||
commands.append('exit')
|
|
||||||
commands.append('no vlan {0}'.format(vlan_id))
|
commands.append('no vlan {0}'.format(vlan_id))
|
||||||
|
|
||||||
elif state == 'present':
|
elif state == 'present':
|
||||||
|
|||||||
Reference in New Issue
Block a user