nxos_interface port-channel idempotence fix for mode (#44248)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/40870/head
Trishna Guha 6 years ago committed by GitHub
parent 0a9c58f866
commit 6af6e806ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -578,7 +578,11 @@ def map_config_to_obj(want, module):
obj['name'] = normalize_interface(interface_table.get('interface'))
obj['admin_state'] = interface_table.get('admin_state')
obj['description'] = interface_table.get('desc')
obj['mode'] = interface_table.get('eth_mode')
mode = interface_table.get('eth_mode')
if mode == 'access':
obj['mode'] = 'layer2'
else:
obj['mode'] = 'layer3'
objs.append(obj)

Loading…
Cancel
Save