Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show ip bgp sum should always be a list #76

Open
IPvSean opened this issue Dec 12, 2018 · 1 comment
Open

show ip bgp sum should always be a list #76

IPvSean opened this issue Dec 12, 2018 · 1 comment
Assignees

Comments

@IPvSean
Copy link

IPvSean commented Dec 12, 2018

with respect to: https://github.com/ansible-network/cisco_ios/blob/devel/parser_templates/cli/show_ip_bgp_summary.yaml

I feel like the output of show ip bgp summary should always be a list using the filter

here is my output

ok: [rtr2] => changed=false
  ansible_facts:
    cisco_ios:
      vrf:
        DEFAULT:
          protocols:
            bgp:
              neighbors:
                172.17.124.126:
                  asn: '65004'
                  ip_version: '4'
                  state_pfxrcd: '0'
                  timer: 04:31:33
              process_state: active
  included:
  - /home/student1/.ansible/roles/ansible-network.cisco_ios/parser_templates/cli/show_ip_bgp_summary.yaml

otherwise trying to print out the neighbor info for multiple vs one is different and you got to have logic in the playbook for that

@LukeDRussell
Copy link
Contributor

In my playbooks I use the jinja list filter to iterate, which I think proves your point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants