Create Service Instance for Single Device

PATCH {{PROTOCOL}}://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/svi_verify_example:svi_verify_example/

Creates a service and applies the corresponding template.

to add a package on the sandbox system install do the following:

cd /var/opt/ncs/packages ncs-make-package --service-skeleton template snmp-servers vi snmp-servers/src/yang/snmp-servers.yang

** add type string / remove type ip address ** https://github.com/jabelk/snmp-servers/blob/main/src/yang/snmp-servers.yang#L31

cd snmp-servers/src/ make cd .. cd templates/ vi snmp-servers-template.xml

** add in the templates **

https://github.com/jabelk/snmp-servers/blob/main/templates/snmp-servers-template.xml#L19

log into NSO ncs_cli -C packages reload

Request Params

KeyDatatypeRequiredDescription
dry-runstring

Request Body

{"svi_verify_example:svi_verify_example"=>[{"name"=>"first-instance", "switches"=>[{"id"=>"first-sw", "switch-device"=>"dist-sw01"}, {"id"=>"second-sw", "switch-device"=>"dist-sw02"}], "firewalls"=>[{"id"=>"first-fw", "firewall-device"=>"edge-firewall01"}], "vlan-id"=>1337, "vlan-name"=>"SVI-DEMO"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring
Acceptstring