get error when trying to run report
I took your code on creating a report and am trying to run it on my system, I have Cisco 9500's and all i really did was change the hosts to my 9500 and the other to one of my linux VMs that runs Rocky 8.8 I made sure it was setup with SELinux as well as podman, I run my PB from AAP and it throws an error at the TASK [../roles/build_report_container : "Create HTML report" and I have looked threw the code and cannot find any problems I would say I an and pretty good at Ansible and AAP but networking with this is new to me, anyhow I attached my output maybe you could point me in the right direction job_10438.txt
I really appreciate your help with this
investigating...
the error is
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'network'
fatal: [docker-ansible]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'network'"}```
In my jinja2 code... I never really thought about this... I have this loop->
{% for network_switch in groups['network']|sort %}
I should probably make it more ubiquitous and use the groups['all']... but for now, can you try just creating a group called network and put a couple network devices in there? I think that is what your issue is
Hi Sean ok so I did what you said i put a network group in but I get a new failure job_10661.txt
I do appreciate all your help
Bill
hey @acdbrn69 , try again, there has been a PR https://github.com/network-automation/toolkit/pull/46