cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
139
Views
2
Helpful
1
Replies
Highlighted
Enthusiast

Possible to apply device-template via JSON-RPC API?

Is it possible to apply a device-template via the JSON-RPC API?

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: Possible to apply device-template via JSON-RPC API?

Yes, the apply (device) template action is defined in nso/4.4.2/src/ncs/yang/tailf-ncs-devices.yang . Look there for details on which arguments to provide (name, variable bindings, etc). In general, anything you can do in the NSO WebUI is also possible over JSON-RPC, since that is what the WebUI uses.

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

Re: Possible to apply device-template via JSON-RPC API?

Yes, the apply (device) template action is defined in nso/4.4.2/src/ncs/yang/tailf-ncs-devices.yang . Look there for details on which arguments to provide (name, variable bindings, etc). In general, anything you can do in the NSO WebUI is also possible over JSON-RPC, since that is what the WebUI uses.

View solution in original post