Hello,
Anyone using iosxr_bgp? If yes, can you share a sample working playbook?
My test playbook
---
- hosts: xrv
gather_facts: no
tasks:
- name: Configure BGP session
iosxr_bgp:
config:
address_family:
afi: ipv4
networks:
network: 192.168.0.0
masklen: 24
bgp_as: 12345
log_neighbor_changes: yes
router_id: 1.1.1.1
neighbors:
- neighbor: 10.0.0.1
remote_as: 58901
description: anurag-test
operation: replace
Output of playbook
ansible-playbook host-bgp-config.yml
PLAY [xrv] *********************************************************************************************************************************************************************
TASK [Configure BGP session] ***************************************************************************************************************************************************
fatal: [xrv]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": "Unsupported parameters for (iosxr_bgp) module: provider Supported parameters include: config, operation"}
PLAY RECAP *********************************************************************************************************************************************************************
xrv : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
I see that the sample config doesn't include start and end with "config" and "operation" parameters. Tried with them as well as without them and having this issue.
Thanks for your time in advance!
--