-
Notifications
You must be signed in to change notification settings - Fork 201
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_designs): core_interfaces generates invalid config if ASN is not defined for the p2p_links/p2p_links_profiles #4046
Merged
ClausHolbechArista
merged 5 commits into
aristanetworks:devel
from
Shivani-gslab:core_interfaces_p2p_links_as
Jun 4, 2024
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-4046
# Activate the virtual environment
source test-avd-pr-4046/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Shivani-gslab/avd.git@core_interfaces_p2p_links_as#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/Shivani-gslab/avd.git#/ansible_collections/arista/avd/,core_interfaces_p2p_links_as --force
# Optional: Install AVD examples
cd test-avd-pr-4046
ansible-playbook arista.avd.install_examples |
github-actions
bot
added
state: CI Updated
CI scenario have been updated in the PR
role: eos_designs
issue related to eos_designs role
labels
May 28, 2024
Shivani-gslab
force-pushed
the
core_interfaces_p2p_links_as
branch
from
May 28, 2024 13:42
4763d40
to
b40ae2c
Compare
...collections/arista/avd/roles/eos_designs/python_modules/core_interfaces_and_l3_edge/utils.py
Outdated
Show resolved
Hide resolved
...collections/arista/avd/roles/eos_designs/python_modules/core_interfaces_and_l3_edge/utils.py
Outdated
Show resolved
Hide resolved
Shivani-gslab
force-pushed
the
core_interfaces_p2p_links_as
branch
from
May 29, 2024 05:01
b40ae2c
to
7a14d9f
Compare
MaheshGSLAB
reviewed
May 30, 2024
...collections/arista/avd/roles/eos_designs/python_modules/core_interfaces_and_l3_edge/utils.py
Outdated
Show resolved
Hide resolved
...ctions/arista/avd/roles/eos_designs/python_modules/core_interfaces_and_l3_edge/router_bgp.py
Show resolved
Hide resolved
MaheshGSLAB
approved these changes
May 31, 2024
Shivani-gslab
force-pushed
the
core_interfaces_p2p_links_as
branch
from
June 3, 2024 12:52
a3f7efb
to
928ad94
Compare
...ctions/arista/avd/roles/eos_designs/python_modules/core_interfaces_and_l3_edge/router_bgp.py
Outdated
Show resolved
Hide resolved
…not defined for the p2p_links/p2p_links_profiles
Shivani-gslab
force-pushed
the
core_interfaces_p2p_links_as
branch
from
June 4, 2024 05:37
928ad94
to
180f5ce
Compare
Quality Gate passedIssues Measures |
ClausHolbechArista
approved these changes
Jun 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
rn: Fix(eos_designs)
role: eos_designs
issue related to eos_designs role
state: CI Updated
CI scenario have been updated in the PR
type: bug
Something isn't working
type: code quality
CI and development toolset
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
Current code is converting the
bgp_as
value tostring
, whereNone
value is also getting converted to typestring
, which is revoking the check for None value to raise theAristaAvdMissingVariableError
even ifcore_interfaces.p2p_links.[].as
is not defined.Fixing the code and tests for the same.
Related Issue(s)
Fixes #3596
Component(s) name
arista.avd.eos_designs
Proposed changes
Fixing the type conversion in
ansible_collections/arista/avd/roles/eos_designs/python_modules/core_interfaces_and_l3_edge/utils.py
How to test
Test by not defining
core_interfaces.p2p_links.[].as
in input and run the eos_designs role.AristaAvdMissingVariableError
is expected.Check the test added in
eos_designs_negative_unit_tests
molecule scenario.Checklist
Repository Checklist