Fix: ip reachability test with l3dge endpoint not managed by AVD #3140
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Fix for ip reachability test failure in eos_validate_state when using l3_edge for a link to a device not modeled in AVD.
Related Issue(s)
Issue and fix discussed with @ClausHolbechArista in AVD_Field:
eos_validate_state fails ip reachability tests when using l3_edge to a device not modeled by AVD.
In this case, the peer IP address is set to
False
, and - later on - used as the destination of the IP reachability test.This then results in this CLI and a failed test (reported as 100% packet loss)
[output from ansible-playbook -vvv]
Component(s) name
arista.avd.eos_validate_state
Proposed changes
In ip_reachability.yml, just skip the test if the destination address is defined, but set to False.
In other words, if you do not know a remote IP address, do not try to use it for reachability testing.
How to test
This is a snippet of the l3edge definition for one of the service leaf switches:
Validation fails for this link on avd-4.3.0.
Retested with the proposed fix caused the test to be skipped rather than be reported as failure.
Checklist
User Checklist
Repository Checklist