diff options
-rw-r--r-- | changelogs/fragments/bgp-password-fix.yml | 2 | ||||
-rw-r--r-- | plugins/module_utils/network/vyos/rm_templates/bgp_global.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/bgp-password-fix.yml b/changelogs/fragments/bgp-password-fix.yml new file mode 100644 index 0000000..5c42404 --- /dev/null +++ b/changelogs/fragments/bgp-password-fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - bgp_global - changed to use `neighbor.password` rather than `neighbor.address` (https://github.com/ansible-collections/vyos.vyos/issues/304). diff --git a/plugins/module_utils/network/vyos/rm_templates/bgp_global.py b/plugins/module_utils/network/vyos/rm_templates/bgp_global.py index 0f7fd8b..69cccce 100644 --- a/plugins/module_utils/network/vyos/rm_templates/bgp_global.py +++ b/plugins/module_utils/network/vyos/rm_templates/bgp_global.py @@ -873,7 +873,7 @@ class Bgp_globalTemplate(NetworkTemplate): *$""", re.VERBOSE, ), - "setval": "protocols bgp {{ as_number }} neighbor {{ neighbor.address }} password {{ neighbor.address }}", + "setval": "protocols bgp {{ as_number }} neighbor {{ neighbor.address }} password {{ neighbor.password }}", "compval": "neighbor.password", "result": { "as_number": "{{ as_num }}", |