ConfD User Community

Can confd supports sending notification with changed values to north bound interfaces

Hi,

I used netconf-console --create-subscription option to subscribe for notifications from confd when there is config change. Though i am able to get the notification but there is no details on what value got changed. Only changed operation is mentioned

 ./netconf-console --create-subscription=NETCONF -u 
abc -p password --port 2022 
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <ok/>
</rpc-reply>

<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
  <eventTime>2021-01-29T05:42:39.953716+00:00</eventTime>
  <netconf-config-change xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-
notifications">
    <changed-by>
      <username>cmadmin</username>
      <session-id>0</session-id>
      <source-host>127.0.0.1</source-host>

    </changed-by>
    <datastore>running</datastore>
    <edit>
      <target 
xmlns:servers="http://example.com/ns/servers">/servers:servers/servers:server[se
rvers:name='test1']/servers:ip</target>
      <operation>replace</operation>
    </edit>
  </netconf-config-change>
</notification>

=====================================================================
Using confd following changes were made for the above notification

cd46bc971f83(config)# servers server test1 ip 4.0.9.9 port 900 
INCLUDE_XML_BODY_380 Yes
cd46bc971f83(config-server-test1)# commit 
Commit complete.

Can we get the details of what values changed and is there any other alternative for this

Thanks,
Deepak

No, I don’t think you can get details of the configuration change using the NETCONF default notifications. You can employ CDB subscriptions or YANG-Push; see also here.

An alternative is that you can issue notifications containing all the information you would like to have the client receive from an application. You would have a CDB subscriber, and when it is invoked because of changes in the configuration, then a notification can be sent.