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

TACACS server config error out for hosts key not defined #4649

Open
1 task done
MaheshGSLAB opened this issue Oct 25, 2024 · 0 comments
Open
1 task done

TACACS server config error out for hosts key not defined #4649

MaheshGSLAB opened this issue Oct 25, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@MaheshGSLAB
Copy link
Contributor

MaheshGSLAB commented Oct 25, 2024

Issue Summary

For TACACS server model hosts key check is not implement in j2 template hence if apart from hosts key if using other keys then throws error that hosts key is not defined.

Originally posted by @Shivani-gslab #4626 (comment)

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

Run the eos_cli_config_gen role with below input.

tacacs_servers:
  timeout: 10

Relevant log output

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: jinja2.exceptions.UndefinedError: 'ansible.parsing.yaml.objects.AnsibleMapping object' has no attribute 'hosts'
fatal: [aaa -> localhost]: FAILED! => {"changed": false, "msg": "Error during plugin execution: 'ansible.parsing.yaml.objects.AnsibleMapping object' has no attribute 'hosts'"}

Contributing Guide

  • I agree to follow this project's Code of Conduct
@MaheshGSLAB MaheshGSLAB added the type: bug Something isn't working label Oct 25, 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

No branches or pull requests

1 participant