Simple app that provides NSO with a grpc interface.
- GetDevices
- EditConfig
- GetConfig
- Query
- ExecOperation
Full proto definition can be found at proto/service.proto
NSO 5.2 and greater are supported. RESTCONF API needs to be enabled
You can run this in any linux with Go 1.14. The code can also be run in a container. The app will read the following env variables:
- NSO_USERNAME -> For example: admin
- NSO_PASSWORD -> For example: admin
- NSO_URL -> Needs to point to the RESTCONF URL. For example: http://localhost:8080/restconf
In adition to above, you need to generate cert.pem and key.pem files under tls directory. For example:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
- Santiago Flores Kante (sfloresk@cisco.com)
Provided under Cisco Sample Code License, for details see LICENSE
Our code of conduct is available here
See our contributing guidelines here