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

Using Cobra to read deployed EPGs on port #149

Open
dirkf98 opened this issue Mar 21, 2022 · 0 comments
Open

Using Cobra to read deployed EPGs on port #149

dirkf98 opened this issue Mar 21, 2022 · 0 comments

Comments

@dirkf98
Copy link

dirkf98 commented Mar 21, 2022

Hello,

I'm using Cobra to deploy configuration in ACI and read basic objects. Basically, everything that is directly accessible by lookupByDn.
However, I'm struggling to get the list of EPGs for a specific frontpanel port.
The GET request looks like this: https://{{aci_ip}}/api/node/mo/topology/pod-1/node-1101/sys/phys-[eth1/3].json?rsp-subtree-include=full-deployment&target-node=all&target-path=l1EthIfToEPg

I can't figure out how to write this query in cobra and how to get the data from nested child objects.
I'd appreciate if somebody could walk me through the porcess or point me to some more advanced examples.
Thank you
Dirk

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

1 participant