-
Notifications
You must be signed in to change notification settings - Fork 232
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): Setting ospf.area default values to 0.0.0.0 #4536
Refactor(eos_designs): Setting ospf.area default values to 0.0.0.0 #4536
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-4536
# Activate the virtual environment
source test-avd-pr-4536/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Shivani-gslab/avd.git@ospf_default_to_0.0.0.0#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/Shivani-gslab/avd.git#/ansible_collections/arista/avd/,ospf_default_to_0.0.0.0 --force
# Optional: Install AVD examples
cd test-avd-pr-4536
ansible-playbook arista.avd.install_examples |
7085ad6
to
69d83df
Compare
ed7ea6e
to
f690d2c
Compare
@Shivani-gslab we have a couple of places in our molecule scenarios where the value was hardcoded to
I think for the sake of them being example it would be best to update them to 0.0.0.0 in this PR. |
Co-authored-by: Vibhu-gslab <[email protected]>
ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/DC1-LEAF2B.cfg
Outdated
Show resolved
Hide resolved
...ctions/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/DC1-LEAF2B.yml
Outdated
Show resolved
Hide resolved
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.
./ansible_collections/arista/avd/molecule/eos_designs-mpls-isis-sr-ldp/documentation/devices/SITE1-LER1.md
285: ip ospf area 0
600:| Ethernet6.100 | 0 | 10 | True |
it is provided as input here and is not generated by default - https://github.com/aristanetworks/avd/blob/devel/ansible_collections/arista/avd/molecule/eos_designs-mpls-isis-sr-ldp/inventory/group_vars/MPLS_TENANTS_NETWORKS.yml#L79 |
@gmuloc @alexeygorbunov To be clear, we still need to test that giving ospf area 0 still works. So it is ok to have molecule vars with area 0. It is just the default we are changing. |
Please retry analysis of this Pull-Request directly on SonarCloud |
Guillaume told me we have some test with another integer area, so that we can keep that and then change all the 0 -> 0.0.0.0 in molecule inputs. |
...a/avd/molecule/eos_designs_unit_tests/inventory/group_vars/DC1_TENANTS_NETWORKS/Tenant_A.yml
Outdated
Show resolved
Hide resolved
…/inventory/group_vars/DC1_TENANTS_NETWORKS/Tenant_A.yml
Co-authored-by: laxmikantchintakindi <[email protected]>
Co-authored-by: laxmikantchintakindi <[email protected]>
Quality Gate passedIssues Measures |
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
reviews comments have been addressed
Change Summary
OSPF default values should default to "0.0.0.0" since that is how EOS translates "0"
Related Issue(s)
Fixes #3006
Component(s) name
arista.avd.eos_designs
Proposed changes
Setting ospf.area default values to 0.0.0.0 in schema and code.
How to test
Checklist
User Checklist
Repository Checklist