11-19-2021 02:41 AM - edited 11-19-2021 06:23 AM
Hi everyone,
I am just studying for DevNet Associate exam and I am currently trying out DC Automation with Python.
So i downloaded ACIToolkit and imported it into my script. I can list tenants, EPGs you name it...
However when I try to list endpoints i do get an error message saying that there is an key error within some of the ACIToolkit files.
I created this little test-script for showcasing:
So when commenting the "endpoint.ip = str(ep["ip"]))" out I started to receive data again.
Does someone know how I can see the endpoints IP address then ?
Thanks!
08-20-2022 01:36 PM - edited 08-20-2022 01:38 PM
I get no error with TENTANTS = aci.Tenant.get(SESSION). I guess there is no Endpoint in that Pod.
01-08-2024 03:20 PM
Dear All ,
I am getting this below error while trying to execute aci show endpoints details using ACITOOLKIT .
Please can anyone suggest me how to fix this Acitoolkits script for endpoints details .
It would be highly appreciated if anyone reply on this issue .
with regards
Erfan
01-09-2024 12:04 AM
Hi @euahmed, can you please post your code/script?
Thanks
Marcel
01-10-2024 01:40 PM
Hi @Marcel Zehnder ,
Thanks for your response. I have taken the script from below sample script. I am not sure why I am getting this error while executing below script from GitHub. I have installed Cobra SDK and ACITOOLKIT libraries and modules. On the other hand, other script is running properly from below sample GitHub folder.
https://github.com/datacenter/acitoolkit/blob/master/samples/aci-show-endpoints.py
It would be highly appreciated if you assist me on this below script according to shared screenshot.
Thanking you.
Erfan
01-11-2024 08:09 AM
Hi @euahmed
There is already an open issue for this: https://github.com/datacenter/acitoolkit/issues/388
Looking at the code, the problem is related to endpoint objects with no "ip" attribute: Line 5394 will not work (https://github.com/datacenter/acitoolkit/blob/master/acitoolkit/acitoolkit.py#L5394). We should get the dict values via ep.get(<attribute_name>) and not via ep[<attribute_name>], I will check if there is PR for this, if not I will create one.
Also I'm not sure if acitoolkit is still maintained.
Cheers
Marcel
01-11-2024 08:10 AM
Follow up, PR is already created: https://github.com/datacenter/acitoolkit/pull/382
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide