Skip to content
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

laxmikantchintakindi
Copy link
Contributor

@laxmikantchintakindi laxmikantchintakindi commented Dec 23, 2024

Change Summary

Add default: default for ip_name_servers[].vrf

Related Issue(s)

Fixes #4788

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Add default: default for ip_name_servers[].vrf

How to test

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

Copy link

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

@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated labels Dec 23, 2024
@laxmikantchintakindi laxmikantchintakindi force-pushed the refactor/eos_cli/ip-name-server-vrf-default branch 3 times, most recently from f52c5fc to 6bda3c7 Compare December 23, 2024 11:57
Shivani-gslab
Shivani-gslab previously approved these changes Dec 31, 2024
Copy link
Contributor

@Shivani-gslab Shivani-gslab left a 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 %}

@Shivani-gslab Shivani-gslab dismissed their stale review December 31, 2024 12:38

Clicked on approve by mistake

@laxmikantchintakindi
Copy link
Contributor Author

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.

@github-actions github-actions bot added type: documentation Improvements or additions to documentation role: build_output_folders issue related to build_output_folders role role: cvp_configlet_upload issue related to cvp_configlet_upload role module: inventory_to_container issue related to inventory_to_container module role: eos_config_deploy_cvp issue related to eos_config_deploy_cvp role module: configlet_build_config issue related to configlet_build_config module role: eos_config_deploy_eapi issue related to eos_config_deploy_eapi role filter: is_in_filter issue related to is_in_filter plugin filter: list_compress issue related to list_compress filter plugin filter: natural_sort issue related to natural_sort filter plugin type: code quality CI and development toolset role: eos_validate_state role: dhcp_provisioner type: Python filters role: eos_snapshot role: eos_designs issue related to eos_designs role state: conflict PR with conflict labels Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@laxmikantchintakindi laxmikantchintakindi force-pushed the refactor/eos_cli/ip-name-server-vrf-default branch from 6e88f53 to e09d618 Compare January 3, 2025 08:49
@github-actions github-actions bot added state: conflict PR with conflict and removed role: cvp_configlet_upload issue related to cvp_configlet_upload role module: inventory_to_container issue related to inventory_to_container module role: eos_config_deploy_cvp issue related to eos_config_deploy_cvp role module: configlet_build_config issue related to configlet_build_config module role: eos_config_deploy_eapi issue related to eos_config_deploy_eapi role filter: is_in_filter issue related to is_in_filter plugin filter: list_compress issue related to list_compress filter plugin filter: natural_sort issue related to natural_sort filter plugin type: code quality CI and development toolset role: eos_validate_state role: dhcp_provisioner type: Python filters role: eos_snapshot role: eos_designs issue related to eos_designs role state: conflict PR with conflict labels Jan 3, 2025
Copy link

github-actions bot commented Jan 3, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

Copy link
Contributor

@Shivani-gslab Shivani-gslab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Shivani-gslab Shivani-gslab force-pushed the refactor/eos_cli/ip-name-server-vrf-default branch from e09d618 to a540ef4 Compare January 3, 2025 14:20
@Shivani-gslab Shivani-gslab marked this pull request as ready for review January 3, 2025 14:20
@Shivani-gslab Shivani-gslab requested review from a team as code owners January 3, 2025 14:20
Copy link
Contributor

@ClausHolbechArista ClausHolbechArista left a 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.

@laxmikantchintakindi
Copy link
Contributor Author

laxmikantchintakindi commented Jan 6, 2025

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 default only in the template to sort the commands as per EOS and not generate the default word in the output?

@laxmikantchintakindi
Copy link
Contributor Author

Closing the PR as adding default vrf is not necessary. The vrf key will be required starting from AVD 6.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor(eos_cli_config_gen): Add default: default for ip_name_servers[].vrf
3 participants