-
Notifications
You must be signed in to change notification settings - Fork 212
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): Improve the aaa accounting j2 template #4636
base: devel
Are you sure you want to change the base?
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-4636
# Activate the virtual environment
source test-avd-pr-4636/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/ansible-avd.git@issue-4630#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/MaheshGSLAB/ansible-avd.git#/ansible_collections/arista/avd/,issue-4630 --force
# Optional: Install AVD examples
cd test-avd-pr-4636
ansible-playbook arista.avd.install_examples |
ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/aaa.cfg
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/aaa.cfg
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
@@ -44,3 +55,11 @@ aaa_accounting: | |||
type: start-stop | |||
logging: false | |||
group: TACACS | |||
# It should not include logging into command |
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.
Please add reasoning why, so these are easier to follow in the future.
@@ -6,48 +6,50 @@ | |||
{# eos - aaa accounting #} | |||
{% if aaa_accounting is arista.avd.defined %} | |||
{% if aaa_accounting.exec.console.type is arista.avd.defined %} |
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.
I think, the type
key should be required here
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.
It could be breaking change but yes ideally as per j2 and EOS it should be a required key
cc @gmuloc @ClausHolbechArista
Quality Gate passedIssues Measures |
Change Summary
Improve the aaa accounting j2 template.
Related Issue(s)
Fixes #4630
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
How to test
Run molecule with different type of inputs in aaa_accounting
Checklist
User Checklist
Repository Checklist