-
Notifications
You must be signed in to change notification settings - Fork 202
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
Feat(eos_validate_state): skip lldp topology for shutdown #2221
Feat(eos_validate_state): skip lldp topology for shutdown #2221
Conversation
Correct the logic for skipping lldp neighborship validation when interface is shut down.
Update the documentation to mention that validate tests for both interface and lldp_topology will be changed
For the case of The logic could be |
ansible_collections/arista/avd/roles/eos_validate_state/tasks/lldp_topology_fqdn.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_validate_state/tasks/lldp_topology_no_fqdn.yml
Outdated
Show resolved
Hide resolved
…lldp_topology_fqdn.yml Co-authored-by: Tony Reddy Goda <tgoda@arista.com>
…lldp_topology_no_fqdn.yml Co-authored-by: Tony Reddy Goda <tgoda@arista.com>
Approved but please make tests pass |
ansible_collections/arista/avd/roles/eos_validate_state/tasks/lldp_topology_no_fqdn.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_validate_state/tasks/lldp_topology_fqdn.yml
Outdated
Show resolved
Hide resolved
…lldp_topology_no_fqdn.yml
…lldp_topology_fqdn.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Change Summary
Skip checking LLDP topology for interfaces that are
shutdown: true
.When a device in the inventory has
is_deployed: false
and the global valueshutdown_interfaces_towards_undeployed_peers: true
is set, the interfaces towards devices that have not been deployed will be in the shutdown state.In the above case, we should skip checking for lldp neighborships as we will not find any lldp peers if the interface is shutdown.
Related Issue(s)
Fixes #2110
Component(s) name
arista.avd.eos_validate_state
Proposed changes
Adds a check to make sure interface is not shutdown before checking lldp neighborship.
not (ethernet_interface.value.shutdown is undefined or ethernet_interface.value.shutdown) and
so that the logic becomes:How to test
There are currently no Molecule tests for
eos_validate_state
Checklist
User Checklist
Repository Checklist