mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-27 13:28:51 +07:00
Removed 'no vn-segment' when state == 'absent' (#19952)
This commit is contained in:
@@ -628,7 +628,7 @@ def main():
|
||||
end_state_vlans_list = existing_vlans_list
|
||||
|
||||
if commands:
|
||||
if existing.get('mapped_vni'):
|
||||
if existing.get('mapped_vni') and state != 'absent':
|
||||
if (existing.get('mapped_vni') != proposed.get('mapped_vni') and
|
||||
existing.get('mapped_vni') != '0' and proposed.get('mapped_vni') != 'default'):
|
||||
commands.insert(1, 'no vn-segment')
|
||||
|
||||
Reference in New Issue
Block a user