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

ip address virtual secondary IP not properly parsed IP in eos_facts l3_interfaces #388

Closed
ryanmerolle opened this issue Oct 26, 2022 · 0 comments · Fixed by #464
Closed
Assignees
Labels
has_pr This issue has an associated PR.

Comments

@ryanmerolle
Copy link

SUMMARY

Issue #148 added ip address virtual to eos_facts l3_interfaces, but it seems the parsing is not correct

ISSUE TYPE
  • Bug Report
COMPONENT NAME

eos_facts

ANSIBLE VERSION
2.12.9
CONFIGURATION
<empty>
OS / ENVIRONMENT

Arista EOS 4.22 - 4.28

interface config:

interface Vlan100
   description test
   ip address virtual 10.0.0.1/16
   ip address virtual 10.0.1.1/16 secondary
STEPS TO REPRODUCE
  - name: Gather legacy and resource facts
    arista.eos.eos_facts:
      gather_subset: all
      gather_network_resources: l3_interfaces

  - debug:
          var: ansible_facts['network_resources']['l3_interfaces'] | selectattr('name', 'equalto', 'Vlan100')
EXPECTED RESULTS
  ansible_facts['network_resources']['l3_interfaces'] | selectattr('name', 'equalto', 'Vlan73'):
  - ipv4:
    - address: 10.0.0.1/16
      virtual: true
    - address: 10.0.1.1/16 secondary
      virtual: true
    name: Vlan73
ACTUAL RESULTS
  ansible_facts['network_resources']['l3_interfaces'] | selectattr('name', 'equalto', 'Vlan73'):
  - ipv4:
    - address: 10.0.0.1/16
      virtual: true
    - address: 10.0.1.1/16
      secondary: true
      virtual: true
    name: Vlan73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has_pr This issue has an associated PR.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants