I’m using netopeer2 library and running netopeer2-cli and netopeer2-server on separate machines.
I’m subscribing to the config change notifications from netopeer2-cli using subscribe rpc.
The subscribe rpc gives only xpath information of the nodes and not the values changed.
I not only want the xpaths of the changed leaf nodes, but also the values which are updated. And I’m not getting that with the current implementation of subscribe rpc in netopeer2-cli.
Can anybody tell how to get the actual changed values in the form of notifications?
I have tried the subscribe rpc that gives only xpath list where the changes have occurred on netopeer2-server side sysrepo.
Here is a sample of the output of netopeer2-cli side of the subscribe rpc:
<netconf-config-change xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications">
<changed-by>
<username>root</username>
<session-id>0</session-id>
</changed-by>
<datastore>running</datastore>
<edit>
<target xmlns:xyz">*xpath of some node*</target>
<operation>create</operation>
</edit>
<edit>
<target xmlns:xyz">**xpath of some node**</target>
<operation>create</operation>
</edit>
</netconf-config-change>
Also for establish-sub rpc, what I understood is we will get periodic notifications with the subscribed xpath. But I want notifications only on changes to the leaf nodes.