fix state present nxos_evpn_vni (#25212)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-06-01 08:57:17 +05:30 committed by GitHub
commit fb87680046
2 changed files with 8 additions and 5 deletions

View file

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