Removed 'no vn-segment' when state == 'absent' (#19952)

This commit is contained in:
Daniel 2017-01-05 16:03:46 -06:00 committed by John R Barker
parent 08e0f6ada5
commit 7cf9ee30a5

View file

@ -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')