Moquery - return a "parent" object if a "child" object meets criteria
I'm trying to figure out if there is a way to return a "parent" object if a "child" object meets certain criteria, or basically, query the "parent" object in terms of the properties of the "children." I hope I'm making sense LOL
For example, the fvCEp class is a parent of the fvRsCEpToPathEp class. What I would like to do is return the fvCEp class if the child fvRsCEpToPathEp class has a tDn property that contains "eth1/14".
I have tried these commands, but they only return the "child" class fvRsCEpToPathEp :
I am wanting a command that can query the child class fvRsCEpToPathEp and return the corresponding "parent" class fvCEp. Or in other words, query the "parent" fvCEp class in terms of the properties of its "child" class fvRsCEpToPathEp.
I agree doing a query-filter on a child-Mo using query-target=subtree and rsp-subtree=full SHOULD return the full tree including the parent itself. As far as I know such queries always returned just the child-MOs (I tested this in multiple releases). I'm not sure if this works as designed or if this is some kind of wrong behavior.
Thanks for your reply @Marcel Zehnder , and I agree, it would be nice if the parent was included with certain arguments in a moquery search. It would make reverse searches much easier! I'll hold out and see if anyone has a potential solution for this. Thanks again!
Join us live on Thursday, April 8 at 10 am PT (and on demand after) as we join Cisco and HashiCorp executives to discuss the importance of IaC automation, Intersight Service for Terraform, and how to better manage hybrid cloud infrastructure at scale...
Join us live on Thursday, April 8 at 10 am PT (and on demand after) where Cisco and HashiCorp executives will discuss the importance of IaC automation, Cisco Intersight Service for Hashicorp Terraform, and how to better manage hybrid cloud infrastructure...
How to START with Infrastructure as a code for Cisco Cloud Solutions
ACI Ansible Modules Documentation Guide
Cisco Collections on Ansible Galaxy
Cisco DevNet Learning Labs
DevNet Introduction to ACI and Ansible
DevNet Introduction to ACI a...
Here's how to get notified about Cisco software releases, like the Application Policy Infrastructure Controller (APIC) (APIC Software)
Go to software.cisco.com - where you download all Cisco software
Select Software Download