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


other ways to add flows in opendaylight?

asked 2016-03-21 20:26:39 -0800

luis999 gravatar image

updated 2016-03-21 21:27:53 -0800

hi, i am a new to opendaylight and mininet,just started a week ago.

i have create a custom topology in mininet and have install opendaylight.

setup custom mesh topology command: sudo mn --custom --topo mytopo --controller=remote,ip=


         l           l


links: (h1,s1) , (h2,s2), (h3,s3), (h4,s4), (s1,s2), (s1,s3), (s1,s4), (s2,s3), (s2,s4), (s3,s4)

on my opendaylight, i have install 'old-dlux-all' and 'odl-l2switch-switch-ui'.

my question are

1) does odl-l2switch-switch-ui automic add flow to topology?

2) are there other ways to add flow in opendaylight beside using yang ui?

3) if yang ui is the only way, which API should i use to add flow?

many thanks in advance. :)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-03-21 22:16:30 -0800

karthik330 gravatar image

updated 2016-03-21 22:18:12 -0800

  1. Yes , If you install l2switch, it will automatically add default flows in each switch
  2. you can see , sal-flow API in RESTCONF to add ,update, delete Flow . One more API also available in RESTCONF, under opendaylight-inventory ; that is like http://localhost:8181/restconf/config...

please refer these links

  1. you can also add your custom flow by programatically in your own application by accessing the SalFlowService !

may be some more options available. This is what i know

Thanks, -Karthik

edit flag offensive delete publish link more


thank you, it help me alot.

luis999 ( 2016-03-21 23:41:47 -0800 )edit

answered 2016-03-22 15:42:07 -0800

sterdnotshaken gravatar image

Personally I've added flows using yang ui, curl and also Postman (applet you install under the Chrome browser) and prefer Postman over the others by far. Super intuitive and easy to use... Plus you can create flow action type templates, for future use.

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

Question Tools

1 follower


Asked: 2016-03-21 20:26:39 -0800

Seen: 1,189 times

Last updated: Mar 22 '16