mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Fix nxos_bgp_neighbor_af advertise_map and advertise_map_non_exist (#26721)
This commit is contained in:
parent
4d55148ab2
commit
855544604a
2 changed files with 19 additions and 3 deletions
|
@ -305,8 +305,8 @@ PARAM_TO_COMMAND_KEYMAP = {
|
|||
'neighbor': 'neighbor',
|
||||
'additional_paths_receive': 'capability additional-paths receive',
|
||||
'additional_paths_send': 'capability additional-paths send',
|
||||
'advertise_map_exist': 'advertise-map',
|
||||
'advertise_map_non_exist': 'advertise-map',
|
||||
'advertise_map_exist': 'advertise-map exist',
|
||||
'advertise_map_non_exist': 'advertise-map non-exist',
|
||||
'allowas_in': 'allowas-in',
|
||||
'allowas_in_max': 'allowas-in',
|
||||
'as_override': 'as-override',
|
||||
|
@ -599,7 +599,7 @@ def state_present(module, existing, proposed, candidate):
|
|||
command += ' disable'
|
||||
commands.append(command)
|
||||
elif key.startswith('advertise-map'):
|
||||
direction = key.split()[0]
|
||||
direction = key.split()[1]
|
||||
commands.append('advertise-map {1} {0} {2}'.format(direction, *value))
|
||||
elif key in ['filter-list', 'prefix-list', 'route-map']:
|
||||
commands.append('{0} {1} {2}'.format(key, *value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue