diff --git a/lib/ansible/modules/network/nxos/nxos_vlan.py b/lib/ansible/modules/network/nxos/nxos_vlan.py index 0d2df3f6408..60752783564 100644 --- a/lib/ansible/modules/network/nxos/nxos_vlan.py +++ b/lib/ansible/modules/network/nxos/nxos_vlan.py @@ -212,10 +212,6 @@ def map_obj_to_commands(updates, module): if state == 'absent': 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)) elif state == 'present':