-
Notifications
You must be signed in to change notification settings - Fork 228
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
Fix(eos_validate_state): Fix the DHCP not recognized error for STUN and Connectivity tests #4764
Conversation
Review docs on Read the Docs To test this pull request: # Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4764
# Activate the virtual environment
source test-avd-pr-4764/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/ansible-avd.git@issue-4725#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/MaheshGSLAB/ansible-avd.git#/ansible_collections/arista/avd/,issue-4725 --force
# Optional: Install AVD examples
cd test-avd-pr-4764
ansible-playbook arista.avd.install_examples |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
...sta/avd/molecule/eos_validate_state/intended/test_catalogs/dc2-leaf3a.arista.com-catalog.yml
Show resolved
Hide resolved
@tonybourkesdnpros if you have time to test the PR it could be great! |
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
Fix the DHCP not recognized error for STUN and Connectivity tests. If the interface is dhcp then AvdTestStun and AvdTestP2PIPReachability tests try to collect the ip address from interface cause below error.
Related Issue(s)
Fixes #4725
Component(s) name
arista.avd.eos_validate_state
Proposed changes
Fix the DHCP not recognized error for STUN and Connectivity tests. If the interface is dhcp then AvdTestStun and AvdTestP2PIPReachability tests try to collect the ip address from interface cause below error.
Added the logic to check if interface is dhcp interface or not to avoid error.
How to test
Make the interface as DHCP and run the molecule. It should skip the test with below warning:
Checklist
User Checklist
Repository Checklist