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 the aaa accounting template for 'aaa_accounting_commands_commands_console_cli' is undefined" error #4630

Open
1 task done
MaheshGSLAB opened this issue Oct 23, 2024 · 0 comments · May be fixed by #4636
Open
1 task done
Assignees
Labels
type: bug Something isn't working

Comments

@MaheshGSLAB
Copy link
Contributor

Issue Summary

When we use below input for aaa accounting:

aaa_accounting:
  commands:
    console:
      - commands: 1
         logging: false

then in that case getting error as 'aaa_accounting_commands_commands_console_cli' is undefined".

Move the printout{{ aaa_accounting_commands_commands_console_cli }} into the if block to fix this issue.

Which component(s) of AVD impacted

eos_cli_config_gen

How do you run AVD ?

Ansible CLI (with virtual-env or native python)

Steps to reproduce

Add below input in hostvars

aaa_accounting:
  commands:
    console:
      - commands: 1
         logging: false


### Relevant log output

```shell
TASK [arista.avd.eos_cli_config_gen : Generate eos intended configuration and device documentation] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: jinja2.exceptions.UndefinedError: 'aaa_accounting_commands_commands_console_cli' is undefined
fatal: [host1 -> localhost]: FAILED! => {"changed": false, "msg": "Error during plugin execution: 'aaa_accounting_commands_commands_console_cli' is undefined"}

Contributing Guide

  • I agree to follow this project's Code of Conduct
@MaheshGSLAB MaheshGSLAB added the type: bug Something isn't working label Oct 23, 2024
@MaheshGSLAB MaheshGSLAB self-assigned this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant