mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
fix state present nxos_evpn_vni (#25212)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
ea8c9a9b73
commit
fb87680046
2 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue