-
Notifications
You must be signed in to change notification settings - Fork 231
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_cli_config_gen): Add default: default
for ip_name_servers[].vrf
#4842
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-4842
# Activate the virtual environment
source test-avd-pr-4842/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/laxmikantchintakindi/avd.git@refactor/eos_cli/ip-name-server-vrf-default#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/,refactor/eos_cli/ip-name-server-vrf-default --force
# Optional: Install AVD examples
cd test-avd-pr-4842
ansible-playbook arista.avd.install_examples |
f52c5fc
to
6bda3c7
Compare
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.
In doc template also the default value for vrf should be "default"
{% for name_server in ip_name_servers | arista.avd.default([]) %}
| {{ name_server.ip_address }} | {{ name_server.vrf | arista.avd.default('default') }} | {{ name_server.priority | arista.avd.default('-') }} |
{% endfor %}
Done. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
6e88f53
to
e09d618
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
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!
e09d618
to
a540ef4
Compare
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.
This is a breaking change since you are changing the generated configuration. I don't think we really need this change. If people want the default VRF to show up in the generated config, they can just give it on input.
Okay. Shall I use a variable |
Closing the PR as adding default vrf is not necessary. The vrf key will be required starting from AVD 6.0.0. |
Change Summary
Add
default: default
forip_name_servers[].vrf
Related Issue(s)
Fixes #4788
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
Add
default: default
forip_name_servers[].vrf
How to test
Checklist
User Checklist
Repository Checklist