cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

northbound rest api query of Service Inputs

khgrant
Cisco Employee
Cisco Employee

 

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

 

2 REPLIES 2

khgrant
Cisco Employee
Cisco Employee

 

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.

 

khgrant
Cisco Employee
Cisco Employee

 

Restconf will be in NSO 4.3, including the mandatory parts of the current pre-standard spec.

 

Cheers,

 

KJ.

 

Getting Started

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: