11-30-2018 09:14 AM
I have stacked Actions.. One action invoking other actions
Output yang of parent action is referring to child action yang.
But i am unable to get how i can assign output of child action to a leaf in parent output.
If i assign parent output = child output , no error comes
But It shows blank test_bandwidth_optimization_results, hence data is not copied
2018-12-30 21:34:31 - test-portal-app - DEBUG - <class 'ncs.maagic.ActionParams'>
2018-12-30 21:34:31 - test-portal-app - DEBUG - ['__class__', '__delattr__', '__doc__', '__format__', '__get__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__self_class__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__thisclass__', 'test_bandwidth_optimization_results']
If i assign parent output.test_bandwidth_optimization_results = child_output.test_bandwidth_optimization_results , following error is seen
2018-12-30 21:34:31 - root - ERROR - Node type does not support assignment
Yang structures:
Child
output {
container test-bandwidth-optimization-results {
uses config-opm-output;
uses config-opm-congestion-output;
}
Parent:
output {
container test-bandwidth-optimization-results {
uses test-bandwidth-optimization:config-opm-output{}
uses test-bandwidth-optimization:config-opm-congestion-output{}
}
Thanks
Solved! Go to Solution.
11-30-2018 01:10 PM - edited 11-30-2018 01:12 PM
Unfortunately you can't do that, the code has to copy the individual values/leafs.
11-30-2018 01:10 PM - edited 11-30-2018 01:12 PM
Unfortunately you can't do that, the code has to copy the individual values/leafs.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide