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): Update eos template to validate type key defined in aaa_server_group model #4748

Conversation

laxmikantchintakindi
Copy link
Contributor

@laxmikantchintakindi laxmikantchintakindi commented Nov 21, 2024

Change Summary

Refactoraaa_server_group templates.

Related Issue(s)

Fixes #4650

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Make type key required in aaa_server_group model.

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

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.

We should not add required keys in eos_cli_config_gen (for now), since it will make it harder to use custom structured configuration in eos_designs.

@github-actions github-actions bot removed role: eos_cli_config_gen issue related to eos_cli_config_gen role state: Documentation role Updated labels Nov 21, 2024
@laxmikantchintakindi laxmikantchintakindi changed the title Refactor(eos_cli_config_gen): Make type key required in aaa_server_group model Refactor(eos_cli_config_gen): Update eos template to validate type key defined in aaa_server_group model Nov 21, 2024
@laxmikantchintakindi laxmikantchintakindi force-pushed the refactor/eos_cli/aaa_server_group_type_key branch from 8b1eb8d to f2bb622 Compare November 25, 2024 12:29
@Vibhu-gslab Vibhu-gslab force-pushed the refactor/eos_cli/aaa_server_group_type_key branch from f2bb622 to 6a51d1f Compare November 27, 2024 06:39
@Vibhu-gslab Vibhu-gslab force-pushed the refactor/eos_cli/aaa_server_group_type_key branch from 90e23ed to 6a23b79 Compare November 28, 2024 05:27
Copy link
Contributor

@Vibhu-gslab Vibhu-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!

@Vibhu-gslab Vibhu-gslab marked this pull request as ready for review November 28, 2024 11:03
@Vibhu-gslab Vibhu-gslab requested review from a team as code owners November 28, 2024 11:03
@laxmikantchintakindi laxmikantchintakindi force-pushed the refactor/eos_cli/aaa_server_group_type_key branch from d6e0f9e to 1e6511a Compare December 2, 2024 15:43
@Vibhu-gslab Vibhu-gslab marked this pull request as draft December 3, 2024 06:45
@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Dec 3, 2024
@laxmikantchintakindi laxmikantchintakindi marked this pull request as ready for review December 4, 2024 05:15
@MaheshGSLAB MaheshGSLAB requested a review from gmuloc December 6, 2024 11:30
@laxmikantchintakindi laxmikantchintakindi force-pushed the refactor/eos_cli/aaa_server_group_type_key branch from 35cf4e0 to 01e5fc0 Compare December 9, 2024 05:53
@Vibhu-gslab Vibhu-gslab force-pushed the refactor/eos_cli/aaa_server_group_type_key branch from 01e5fc0 to f1cad46 Compare December 10, 2024 12:29
@Shivani-gslab Shivani-gslab removed their request for review December 10, 2024 13:01
@gmuloc gmuloc dismissed Vibhu-gslab’s stale review December 11, 2024 13:21

Comment addressed

@gmuloc gmuloc dismissed ClausHolbechArista’s stale review December 11, 2024 13:24

comment addressed - no required key in schema (for now ..)

@gmuloc gmuloc merged commit 37f976e into aristanetworks:devel Dec 11, 2024
50 checks passed
emilarista pushed a commit to emilarista/ansible-avd that referenced this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Refactor(eos_cli_config_gen) state: CI Updated CI scenario have been updated in the PR
Projects
None yet
6 participants