-
Notifications
You must be signed in to change notification settings - Fork 228
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
Refactor(eos_cli_config_gen): Update eos template to validate type
key defined in aaa_server_group
model
#4748
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-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 |
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.
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.
Quality Gate passedIssues Measures |
type
key required in aaa_server_group
modeltype
key defined in aaa_server_group
model
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/aaa-server-groups-tacacs-plus.j2
Outdated
Show resolved
Hide resolved
8b1eb8d
to
f2bb622
Compare
f2bb622
to
6a51d1f
Compare
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/aaa-server-groups-ldap.j2
Outdated
Show resolved
Hide resolved
90e23ed
to
6a23b79
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.
LGTM!
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/aaa-server-groups.j2
Outdated
Show resolved
Hide resolved
d6e0f9e
to
1e6511a
Compare
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/aaa-server-groups-ldap.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/aaa-server-groups-radius.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/aaa-server-groups-tacacs-plus.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/aaa-server-groups-tacacs-plus.j2
Outdated
Show resolved
Hide resolved
35cf4e0
to
01e5fc0
Compare
for more information, see https://pre-commit.ci
01e5fc0
to
f1cad46
Compare
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/aaa-server-groups.j2
Show resolved
Hide resolved
comment addressed - no required key in schema (for now ..)
…key defined in `aaa_server_group` model (aristanetworks#4748)
Change Summary
Refactor
aaa_server_group
templates.Related Issue(s)
Fixes #4650
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
Make
type
key required inaaa_server_group
model.How to test
Checklist
User Checklist
Repository Checklist