How can I use Yang Push service for openflow/netconf ?

asked 2017-02-24 04:05:59 -0700

Suraj Khedkar gravatar image

I am not able to create subscriptions successfully .

Rest API : 
http://localhost:8181/restconf/operations/ietf-datastore-push:create-subscription

Json Data for Post 

    <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 : 

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

I am following the tutorial https://wiki.opendaylight.org/view/YANGPUBSUB:BerylliumUserGuide.

Can anyone please explain me how to achieve yang push for openflow/netconf flow devices ?

edit retag flag offensive close merge delete