I do have the next basic service in my NSO which create a custom loopback. Using the CLI works well
admin@ncs(config)# my_std_mgmt_loopback TEST_FOR_CISCO_COMUNNITY device my_sw loopback-intf 77 ip-address 126.96.36.199 net_mask 255.255.255.0
but I would like to use this service and create a loopback thru the API. Is that possible? Can you give me an insight ?
NSO version: 6.1
Solved! Go to Solution.
See the new $NCS_DIR/examples.ncs/development-guide/nano-services/netsim-sshkey/showcase_maapi.py for an intro example. Used by the NSO Getting Started Guide https://developer.cisco.com/docs/nso/guides/#!developing-and-deploying-a-nano-service
There are corresponding Python requests RESTCONF and CLI showcase variants too in the example.
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 NSO Developer community: