cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
35
Views
2
Helpful
2
Replies
Highlighted
Cisco Employee

northbound rest api query of Service Inputs

 

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
Cisco Employee

Re: northbound rest api query of Service Inputs

 

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.

 

Cisco Employee

Re: northbound rest api query of Service Inputs

 

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

 

Cheers,

 

KJ.

 

Content for Community-Ad
August's Community Spotlight Awards