nxos_interface port-channel idempotence fix for mode (#44248)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
0a9c58f866
commit
6af6e806ed
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue