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

Finding dependencies in NSO services

dciprus
Cisco Employee
Cisco Employee

Is there any way to find dependencies on the NSO ? For instance, L2 service instance is created first, then L3 service instance is created afterwards. When removing the service, there is a internal dependency between those 2 instances. There are backpointers but those are not showing on every instance of the service. If there is a way, could you please share a snippet of the code how to do this ?

1 Reply 1

hazad
Cisco Employee
Cisco Employee

You can specify such dependencies by using leafrefs in your YANG, for instance by having a leafref in your L3 service that points to the L2 service. This prevents the L3 service from being created if the required L2 service doesn't exist, and also prevents the L2 service from being deleted if there's an L3 service pointing to it.

But I have a feeling that I'm missing something regarding your use case. How do you mean that backpointers are not showing for all service instances? Where are they not showing, and for which instances are they showing/not showing?