Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


How to check if flow is installed on hardware

asked 2015-04-09 20:24:45 -0700

nikmol gravatar image

When I sometimes check in the Opendaylight UI I can see that some flows are not installed (not sure why)? What API should I use to get info that the flow is not installed on HW? Right now I'm using address /controller/nb/v2/flowprogrammer/default But this only get the current flows that are installed in opendaylight. What API do I use to see if a flow is installed on HW or not. And what APi do I use to install an uninstalled flow?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-02 08:28:41 -0700

Colin Dixon gravatar image

It sounds like you're using Hydrogen flow programming APIs. I'd suggest using the Helium/Lithium MD-SAL-based RESTCONF APIs. A quick tutorial is here:

If you use, that you'll program flows using URLs like this: http://<controller ip="">:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1 </controller>

Note the "config" after restconf in the URL, that's telling the controller the rules you'd like to have installed in the hardware. The actual flows installed in hardware (as determined by reading statistics from the device) are added in stead to the "operational" data store which you access using URLs like: http://<controller ip="">:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0/</controller>

If your flow doesn't get installed, unfortunately the best thing is to look in the logs for exceptions. If you find an error/exception you can try putting a different flow into the API fixing the issue and OpenDaylight should try to install the new flow (hopefully successfully).

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-04-09 20:24:45 -0700

Seen: 302 times

Last updated: Sep 02 '15