-
Notifications
You must be signed in to change notification settings - Fork 234
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): Network Services ethernet interfaces refactoring to classes #4976
base: devel
Are you sure you want to change the base?
Refactor(eos_designs): Network Services ethernet interfaces refactoring to classes #4976
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-4976
# Activate the virtual environment
source test-avd-pr-4976/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@refactor/eos_designs/network-services/ethernet-interfaces#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/gmuloc/avd.git#/ansible_collections/arista/avd/,refactor/eos_designs/network-services/ethernet-interfaces --force
# Optional: Install AVD examples
cd test-avd-pr-4976
ansible-playbook arista.avd.install_examples |
for more information, see https://pre-commit.ci
9559aa3
to
e87f9e0
Compare
300ec05
to
06e453c
Compare
...s_negative_unit_tests/inventory/host_vars/duplicate-interfaces-point-to-point-services-1.yml
Show resolved
Hide resolved
...s_negative_unit_tests/inventory/host_vars/duplicate-interfaces-point-to-point-services-4.yml
Show resolved
Hide resolved
@@ -421,6 +421,10 @@ def _compare(self, other: Self, ignore_fields: tuple[str, ...] = ()) -> bool: | |||
# Ignore empty lists or classes since they could have been initialized in the code but they would be trimmed from the output. | |||
continue | |||
|
|||
if (value and not other_value) or (not value and other_value): |
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.
Let's get the refactored stuff in the BGP pr in quick so this will not be needed.
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
...s_negative_unit_tests/inventory/host_vars/duplicate-interfaces-point-to-point-services-4.yml
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
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. |
|
Change Summary
Update network_services/ethernet_interfaces.py to use classes
Component(s) name
arista.avd.eos_designs
Proposed changes
How to test
molecule does not change
Checklist
Repository Checklist