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!
Thanks for attending our ATXs sessions! Here’s the post-session resources for easy reference.
New to ATXs? An ATXs session, offered at no cost, is an hour of real-time learning led by Cisco experts, who will answer your technology questions through produ...
Thanks for attending our Ask the Experts (ATXs) sessions! Here’s the post-session resources for easy reference.
New to ATXs? An ATXs session, offered at no cost, is an hour of real-time learning led by Cisco experts, who will answer your technology quest...
New Cisco Champion Radio release on Cisco Intersight Cloud Operations PlatformListen: https://smarturl.it/CCRS8E15Follow us: https://twitter.com/CiscoChampion Known as Project Starship when it was introduced in June 2017, Cisco Intersight has come a ...
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...