09-01-2016 02:43 PM
Hi team,
Working with the northbound REST API. I’ve figured out how to query my services once deployed. But my question is how to query the services Yang model before deployment.
In the Native GUI, after adding a service (but before commit) It displays the Yang model including any of the defaults we put in the Yang model. But this is json/rpc.
How can I do the same using REST API to initiate setting a service name and then seeing all of the Yang variables (default or not)?
Thanks in advance, JA
09-09-2016 09:05 AM
Hi Julie,
I guess the question is how to retrieve the schema for a resource/service using the REST interface. I don’t think this exists. Check the nso-northbound guide.
I know that in RESTCONF specs there is this “Schema Resource” [https://tools.ietf.org/html/draft-ietf-netconf-restconf-09#section-3.7]
which allows the retrieval of the schema. Perhaps use JSON/RPC for now and check with engineering if/when RESTCONF will be added as a NBI for NSO.
Thanks,
Bilal.
09-09-2016 09:05 AM
Restconf will be in NSO 4.3, including the mandatory parts of the current pre-standard spec.
Cheers,
KJ.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: