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

Show endpoints sample does retrieve key error in acitoolkit.py #376

Open
Nik1709 opened this issue Nov 19, 2021 · 1 comment
Open

Show endpoints sample does retrieve key error in acitoolkit.py #376

Nik1709 opened this issue Nov 19, 2021 · 1 comment

Comments

@Nik1709
Copy link

Nik1709 commented Nov 19, 2021

Hi there,

I am having a problem with the "show-endpoints.py" sample.
When I use this sample code on the Cisco ACI Always-On Sandbox I receive a keyError in acitoolkit.py

Error-message:
PS C:\Path_to_File> python .\acitoolkit_test.py
Traceback (most recent call last):
File "C:\Path_to_File\acitoolkit_test.py", line 27, in
ENDPOINTS = aci.Endpoint.get(SESSION)
File "C:\Path_to_File\acitoolkit\acitoolkit.py", line 5432, in get
endpoints = Endpoint._get(session, endpoint_name, interfaces,
File "C:\Path_to_File\acitoolkit\acitoolkit.py", line 5388, in _get
endpoint.ip = str(ep['ip'])
KeyError: 'ip'

However when I try showing the tenants or the EPGs everything works just fine.
Is this way of displaying the endpoints deprecated or am I missing something else here?

Thanks in advance!
Nik

@PratyushBasu
Copy link

PratyushBasu commented Dec 9, 2021

Hello @Nik1709
Could you share the output of ep dictionary?

**edit: check this issue description for the key issue.. #374

Regards,
Pratyush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants