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 POST flow

asked 2015-08-29 01:28:35 -0700

happysmile gravatar image

Hello guys, I am wondering how it is possible to POST a flow in odl? Using this link i can PUT a flow, meaning that a flow id is needed, but how to make sure this id is not already written to? I found sal-flow(2013-08-19) which makes flow posting available but no tutorial I found on it. can anyone help me on it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-29 07:19:35 -0700

Check out pybvcsamples, perlbscsamples or rubybvcsamples. These all have sample apps that write and read flows.
To not overwrite existing flows you could do a get to obtain the existing flows or you could use an Iflow ids that use a reverse domain so you have global uniqueness in your apps flow ids (e.g. com.Elbrys.k-12.1 and com.Elbrys.k-12.2, etc). Flow ids are not just integers. A restconf developer page with the above python, perl and ruby tools as well as postman collection is here: It is a page for Brocade SDN Controller, but the tools work for ODL.

Jim B.

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

Question Tools

1 follower


Asked: 2015-08-29 01:28:35 -0700

Seen: 72 times

Last updated: Aug 29 '15