From 4a4b3487354a484e7bef5d66b6c030a42550bcd8 Mon Sep 17 00:00:00 2001 From: rfranks-securenet Date: Tue, 28 Mar 2023 21:07:01 +0100 Subject: BGP Password fix (#305) * BGP Password fix Updated command to use neighbor.password rather than neighbor.address * Added changelog fragment --- changelogs/fragments/bgp-password-fix.yml | 2 ++ plugins/module_utils/network/vyos/rm_templates/bgp_global.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/bgp-password-fix.yml diff --git a/changelogs/fragments/bgp-password-fix.yml b/changelogs/fragments/bgp-password-fix.yml new file mode 100644 index 00000000..5c424046 --- /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 0f7fd8b5..69cccce0 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 }}", -- cgit v1.2.3