CISCO NSO NETCONF notification example

In this post you will discover how to send CISCO NSO netconf notifications. Basically you have to go through 3 steps:

Configure the netconf stream in the NSO ncs.conf config file.

Create YANG model in the NSO.

Produce a python code to send the notification.

Firstly, you should configure the ncs.conf. You have to set a Netconf notification stream in the ncs config file. Here is an example how to configure the stream in the NSO:

Secondly, you have to create yang model with namespace in the NSO:

Don’t forget to compile YANG model and macke package-reload in the NSO.

The next step is to write python logic:

Good luck!