-
Notifications
You must be signed in to change notification settings - Fork 239
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
Refactor(eos_designs): structured_config for prefix_lists #5109
base: devel
Are you sure you want to change the base?
Refactor(eos_designs): structured_config for prefix_lists #5109
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-5109
# Activate the virtual environment
source test-avd-pr-5109/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Vibhu-gslab/avd.git@refactor_prefix_list#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/Vibhu-gslab/avd.git#/ansible_collections/arista/avd/,refactor_prefix_list --force
# Optional: Install AVD examples
cd test-avd-pr-5109
ansible-playbook arista.avd.install_examples |
4a634b0
to
f72ae41
Compare
python-avd/pyavd/_eos_designs/structured_config/underlay/prefix_lists.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/prefix_lists.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/underlay/prefix_lists.py
Outdated
Show resolved
Hide resolved
subnets = self._vrf_default_ipv4_subnets | ||
static_routes = self._vrf_default_ipv4_static_routes["static_routes"] |
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.
Can you check if we can update the return values as class object for these two function
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.
These functions are being used in other files as well, I would suggest we will do it in another PR when we pick utils.py from our list to refactor.
…x_lists.py Co-authored-by: Shivani-gslab <[email protected]>
…es/prefix_lists.py Co-authored-by: Shivani-gslab <[email protected]>
502a418
to
a6b56e2
Compare
python-avd/pyavd/_eos_designs/structured_config/underlay/prefix_lists.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/underlay/prefix_lists.py
Outdated
Show resolved
Hide resolved
…x_lists.py Co-authored-by: laxmikantchintakindi <[email protected]>
|
Change Summary
Refactor eos_designs structured_config for prefix_lists
Related Issue(s)
Fixes #
Component(s) name
arista.avd.eos_designs
Proposed changes
How to test
Checklist
Repository Checklist