How can I implement yang push ?

asked 2017-02-24 04:10:48 -0800

Suraj Khedkar gravatar image

I am trying to create subscription to my openflow device and getting response as -1.

REST API

http://localhost:8181/restconf/operations/ietf-datastore-push:create-subscription
Body 
<input xmlns="urn:ietf:params:xml:ns:yang:ietf-datastore-push">
 <stream>push-update</stream>
 <period>10</period>
 <subtree-filter type="subtree">
   <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg"/>
 </subtree-filter>
 <node-name xmlns="urn:opendaylight:params:xml:ns:yang:yangpush">xrvr1</node-name>
</input>

Response JSON

<output xmlns="urn:ietf:params:xml:ns:yang:ietf-datastore-push">
    <subscription-id>-1</subscription-id>
</output>

My understanding is that we only need to create subscription for node.

Can anyone please tell me steps to implement yang push ?

edit retag flag offensive close merge delete