Netconf notifications


I have established notification session by sending create-subscription request.
Now, when i do some changes via CLI, I do not get ‘NETCONF-CONFIG-CHANGE’ notification.
But when i do changes from other netconf session , i get the notification.
Is this expected behavior or notification should be received when config change is by CLI also??

I am not sure what the problem is but to answer your question: Changes through CLI or any other interface should also trigger the notification. Maybe you have some conditional code based on the user session?

You can verify this by subscribing to the NETCONF stream, then make a change via CLI.

There is also an example that you can refer to: $CONFD_DIR/examples.confd/netconf_notifications