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

Fix(eos_cli_config_gen): Fix the exit of name-server group between vrf host and root in monitor connectivity #5134

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

laxmikantchintakindi
Copy link
Contributor

@laxmikantchintakindi laxmikantchintakindi commented Mar 6, 2025

Change Summary

Fix the exit of name-server group between vrf host and root in monitor connectivity

Related Issue(s)

Fixes #5133

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

When pushed below configuration to eos, it generates wrong configs.

Intended configs -

monitor connectivity
   vrf blue
      interface set VRF_GLOBAL_SET Vlan21-24, Vlan29-32
      local-interfaces VRF_GLOBAL_SET default
      !
      host server4
         description
         server4_connectivity_monitor
         local-interfaces VRF_GLOBAL_SET
         ip 10.10.20.1
         url https://server2.local.com
   name-server group mynameserver1

Show running config:

monitor connectivity
   vrf blue
      interface set VRF_GLOBAL_SET Vlan21,Vlan22,Vlan23,Vlan24,Vlan29,Vlan30,Vlan31,Vlan32
      local-interfaces VRF_GLOBAL_SET default
      !
      host server4
         description server4_connectivity_monitor
         ip 10.10.20.1
         url https://server2.local.com
         name-server group mynameserver1

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)

@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Mar 6, 2025
Copy link

github-actions bot commented Mar 6, 2025

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-5134
# Activate the virtual environment
source test-avd-pr-5134/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/laxmikantchintakindi/avd.git@fix-ip-names-server-group#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/,fix-ip-names-server-group --force
# Optional: Install AVD examples
cd test-avd-pr-5134
ansible-playbook arista.avd.install_examples

@laxmikantchintakindi laxmikantchintakindi force-pushed the fix-ip-names-server-group branch from 0cff982 to 1a79b81 Compare March 6, 2025 06:55
Laxmikant Chintakindi and others added 3 commits March 6, 2025 18:56
@laxmikantchintakindi laxmikantchintakindi force-pushed the fix-ip-names-server-group branch from fa5b8fd to 70491f0 Compare March 6, 2025 13:26
@laxmikantchintakindi laxmikantchintakindi marked this pull request as ready for review March 6, 2025 13:26
@laxmikantchintakindi laxmikantchintakindi requested review from a team as code owners March 6, 2025 13:26
Copy link

sonarqubecloud bot commented Mar 6, 2025

@@ -54,8 +54,14 @@ monitor connectivity
url {{ host.url }}
{% endif %}
{% endif %}
!
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need exclamation mark? exit should fix the issue

Copy link
Contributor

@MaheshGSLAB MaheshGSLAB Mar 7, 2025

Choose a reason for hiding this comment

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

Please test it by deploy via cvp/eapi. Also we need to test it with reboot

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

Successfully merging this pull request may close these issues.

Bug(eos_cli_config_gen): Fix the exit of name-server group between vrf host and root in monitor connectivity
3 participants