-
Notifications
You must be signed in to change notification settings - Fork 240
Feat(eos_designs): Add static_routes data model under svis in network services #5240
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
base: devel
Are you sure you want to change the base?
Feat(eos_designs): Add static_routes data model under svis in network services #5240
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-5240
# Activate the virtual environment
source test-avd-pr-5240/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/laxmikantchintakindi/avd.git@feat/eos_designs/svi_static_routes#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/laxmikantchintakindi/avd.git#/ansible_collections/arista/avd/,feat/eos_designs/svi_static_routes --force
# Optional: Install AVD examples
cd test-avd-pr-5240
ansible-playbook arista.avd.install_examples |
03f37da
to
2449c46
Compare
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_network_services.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_network_services.schema.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-BL1A.cfg
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/static_routes.py
Outdated
Show resolved
Hide resolved
3d68fbd
to
c66fef0
Compare
a257750
to
057beb7
Compare
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_network_services.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_network_services.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/static_routes.py
Outdated
Show resolved
Hide resolved
27eff97
to
d46eaa8
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
need a rebase and rerun of molecule. Moving to draft to keep track. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
@@ -679,6 +679,44 @@ $defs: | |||
convert_types: | |||
- int | |||
description: Tag value. | |||
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.
Please check if we could use a $ref here instead of repeating the full schema
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.
The description should probable be Static routes to be configured on every device where the SVI is configured
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.
vrfs[].static_routes and vrfs[].ipv6_static_routes have old keys destination_address_prefix
and gateway
, so unable to add $ref.
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.
you can add ref - make a ref without the old keys and keep the old keys under the ref in the previous place
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.
fixed.
- vrf: Tenant_A_WAN_Zone | ||
destination_address_prefix: 10.3.5.0/24 | ||
gateway: 1.2.3.4 | ||
name: SVI_static_route |
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 should use the new models.
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.
Fixed.
@@ -1080,75 +1085,40 @@ $defs: | |||
destination_address_prefix: | |||
type: str | |||
description: IPv4_address. | |||
deprecation: |
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.
Added the deprecation for now. #5327. is the PR for deprecation of these keys.
|
Change Summary
Add static_routes data model under SVI
Related Issue(s)
Fixes #4570
Component(s) name
arista.avd.eos_designs
Proposed changes
User likes to be able to apply static routes only on the l3leafs where the svi (nexthop) is reachable. This can be achieved by create a new designvar 'static_routes' under the 'svi' and 'l3interface' specifically.
How to test
Add static_routes under SVIs.
Checklist
User Checklist
Repository Checklist