mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
fix state present nxos_evpn_vni (#25212)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -220,9 +220,8 @@ def state_present(module, existing, proposed):
|
||||
command = '{0} {1}'.format(key, value)
|
||||
commands.append(command)
|
||||
|
||||
else:
|
||||
commands = ['vni {0} l2'.format(module.params['vni'])]
|
||||
parents = ['evpn']
|
||||
if commands:
|
||||
parents = ['evpn', 'vni {0} l2'.format(module.params['vni'])]
|
||||
|
||||
return commands, parents
|
||||
|
||||
|
||||
Reference in New Issue
Block a user