Skip to content

Using Cobra to read deployed EPGs on port #149

@dirkf98

Description

@dirkf98

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions