mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
fix nxos_vrf_af issues (#37211)
This commit is contained in:
parent
c25a42bef6
commit
74e79d9f5e
2 changed files with 101 additions and 23 deletions
|
@ -124,14 +124,14 @@ def main():
|
|||
|
||||
if current:
|
||||
have = 'route-target both auto evpn' in current
|
||||
want = bool(module.params['route_target_both_auto_evpn'])
|
||||
|
||||
if want and not have:
|
||||
commands.append('address-family %s unicast' % module.params['afi'])
|
||||
commands.append('route-target both auto evpn')
|
||||
elif have and not want:
|
||||
commands.append('address-family %s unicast' % module.params['afi'])
|
||||
commands.append('no route-target both auto evpn')
|
||||
if module.params['route_target_both_auto_evpn'] is not None:
|
||||
want = bool(module.params['route_target_both_auto_evpn'])
|
||||
if want and not have:
|
||||
commands.append('address-family %s unicast' % module.params['afi'])
|
||||
commands.append('route-target both auto evpn')
|
||||
elif have and not want:
|
||||
commands.append('address-family %s unicast' % module.params['afi'])
|
||||
commands.append('no route-target both auto evpn')
|
||||
|
||||
else:
|
||||
commands.append('address-family %s unicast' % module.params['afi'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue