mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Removed 'no vn-segment' when state == 'absent' (#19952)
This commit is contained in:
parent
08e0f6ada5
commit
7cf9ee30a5
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue