cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
843
Views
0
Helpful
0
Replies

How can I get acitoolkit objects (aci.interface.get)?

jhongrack-choi
Beginner
Beginner

I can get the interface information using endpoint.xxxx and endpoint.attributes['xxxx'] as below but I cannot get the information such as 'interface description' and 'policy group',,, I checked acitoolkit doc but couldn't find all objects associated to "aci.interface". How I can get all available acitoolkit objects associated to aci.interface?

!

endpoints = aci.Interface.get(session)

!

for endpoint in endpoints:
print(endpoint.if_name)
print(endpoint.port)
print(endpoint.id)
print(endpoint.mtu)
print(endpoint.node)
print(endpoint.porttype)
print(endpoint.pod)
print(endpoint.attributes['usage'])
print(endpoint.attributes['policy'])

!

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers