08-13-2021 01:58 PM
Hi team!
I have an actionpoint developed in Python that should return a list of strings.
Here's the piece from YANG:
module teste { namespace "http://example.com/teste"; prefix teste; import ietf-inet-types { prefix inet; } import tailf-common { prefix tailf; } import tailf-ncs { prefix ncs; } augment /ncs:services { container action { tailf:action check { tailf:actionpoint teste-action; input { leaf-list keypaths { type string; } } output { container result { list service-types { leaf name { type string; } } } } } } } }
But I'm not able to find a way to return that list. The expected result is something like this:
<output xmlns='http://cisco.com'> <result> <service-types> <name>STAGING</name> </service-types> <service-types> <name>OSPF-OVERLAP</name> </service-types> </result> </output>
In the action point Class, the output parameter is a Container.
Can anybody help me?
Thanks in advance!
Solved! Go to Solution.
08-16-2021 06:47 AM
I found the issue! In the YANG, the list service-types hadn't the key, so the output container had a keyless list which didn't permit including result names.
I fixed it and everything is working now!
Tks
08-16-2021 01:09 AM
08-16-2021 06:47 AM
I found the issue! In the YANG, the list service-types hadn't the key, so the output container had a keyless list which didn't permit including result names.
I fixed it and everything is working now!
Tks
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