You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to manage BGP peers that are in VRF's, however I keep getting an error: "Unsupported parameters for (basic.py) module: config.vrfs.neighbor.send_community.set. Supported parameters include: state, running_config, config."
- hosts: all
connection: network_cli
gather_facts: no
tasks:
- name: Gather configuration
arista.eos.eos_facts:
gather_subset:
- config
- name: Gather BGP Info
arista.eos.eos_bgp_global:
state: gathered
running_config: "{{ ansible_net_config }}"
register: eos_bgp
- name: Render BGP info
arista.eos.eos_bgp_global:
state: rendered
config: "{{ eos_bgp.gathered }}"
register: eos_bgp_rendered
- name: Set current BGP as fact
set_fact:
existing_bgp: "{{ eos_bgp_rendered.rendered }}"
- name: Push data to hostvars
lineinfile:
line: "{{ lookup('template','bgp.j2') }}"
path: "{{playbook_dir}}/host_vars/{{inventory_hostname}}.yml"
when: bgp_config is not defined
Where I am trying to generate the config files with this jinja template:
### BGP ###
bgp_config: |
{% for line in existing_bgp %}
{% if loop.first %}
{{ line }}
{% else %}
{{ line }}
{% endif %}
{% endfor %}
However, I think it is because of send-community and no extra positional parameters afterwards?
I have
EXPECTED RESULTS
Expect existing configuration on a server to be parseable
ACTUAL RESULTS
PLAY [all] *********************************************************************************************************************************************************************************************************
TASK [Gather configuration] ****************************************************************************************************************************************************************************************
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
ok: [router1]
TASK [Gather BGP Info] *********************************************************************************************************************************************************************************************
[WARNING]: Both option neighbor_address and its alias peer are set.
fatal: [router1]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (basic.py) module: config.vrfs.neighbor.send_community.set. Supported parameters include: config, state, running_config."}
PLAY RECAP *********************************************************************************************************************************************************************************************************
router1 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Notes:
when I remove the neighbor x.x.x.x send-community it can then gather the BGP info ... so seems that just enabling send community breaks it?
I then move onto the next issue of encrypted passworsd having issues of being parsed and then rendered:
PLAY [all] *********************************************************************************************************************************************************************************************************
TASK [Gather configuration] ****************************************************************************************************************************************************************************************
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
ok: [router1]
TASK [Gather BGP Info] *********************************************************************************************************************************************************************************************
[WARNING]: Both option neighbor_address and its alias peer are set.
ok: [router1]
TASK [Render BGP info] *********************************************************************************************************************************************************************************************
fatal: [router1]: FAILED! => {"changed": false, "msg": "argument 'type' is of type <class 'ansible.utils.unsafe_proxy.AnsibleUnsafeText'> found in 'config -> vrfs -> neighbor -> encryption_password'. and we were unable to convert to int: <class 'ansible.utils.unsafe_proxy.AnsibleUnsafeText'> cannot be converted to an int"}
PLAY RECAP *********************************************************************************************************************************************************************************************************
router1 : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Also notice that you can only configure one type of route-map per peer? Why can't we configure a route-map in and outbound per peer?
The text was updated successfully, but these errors were encountered:
SUMMARY
I am trying to manage BGP peers that are in VRF's, however I keep getting an error:
"Unsupported parameters for (basic.py) module: config.vrfs.neighbor.send_community.set. Supported parameters include: state, running_config, config."
ISSUE TYPE
COMPONENT NAME
eos_bgp_global (config.vrfs.neighbor.send_community.se)
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Below is example configuration on a router:
I then have this playbook:
Where I am trying to generate the config files with this jinja template:
However, I think it is because of
send-community
and no extra positional parameters afterwards?I have
EXPECTED RESULTS
Expect existing configuration on a server to be parseable
ACTUAL RESULTS
Notes:
when I remove the
neighbor x.x.x.x send-community
it can then gather the BGP info ... so seems that just enabling send community breaks it?I then move onto the next issue of encrypted passworsd having issues of being parsed and then rendered:
The text was updated successfully, but these errors were encountered: