Ask Your Question

Add flow via MD-SAL

asked 2015-01-26 07:14:21 -0700

B.Cogan gravatar image

I have already looked the method in , the main issue with this being I cannot find /restconf/config/opendaylight-inventory:nodes/node/{id}/table/{id}/flow/{id} in the API explorer (link generalised from the 'push your flow' section of above guide).

What is the correct link to add a flow via the MD-SAL? Are there any examples (preferably JSON)?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-26 10:41:12 -0700


Hi B.Cogan,

Make sure you have the feature odl-openflowplugin-flow-services-rest installed, once this is installed you can go to http://localhost:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/PUTflowput_100

I also sometimes use the YANG UI in Dlux to see then head down to opendaylight-inventory(2013-08-19)

Thanks Chris

edit flag offensive delete publish link more


Thanks, I've installed and it's appeared for me (though as /PUT_flow_put_62).

B.Cogan ( 2015-02-08 07:58:53 -0700 )edit

Hi, just found a new issue, I'm not able to actually PUT to that address, and am getting a "405 Method not allowed" error. Using OPTIONS through Postman it reports that is only accepts GET, HEAD and OPTIONS. Any idea why PUT/POST are not listed?

B.Cogan ( 2015-02-27 08:21:37 -0700 )edit

Check you're in the config datastore Ie /restconfig/config/opendayligh<blah> and not the operations datastore which is /restconfig/operations/opendaylight<blah>

Chris O'Shea ( 2015-02-27 13:12:15 -0700 )edit

Ah! Yes that was the issue, it's working fine now. Copying and pasting links can cause problems sometimes! Thanks for the help

B.Cogan ( 2015-02-28 08:41:29 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-01-26 07:14:21 -0700

Seen: 588 times

Last updated: Jan 26 '15