Ask Your Question
0

other ways to add flows in opendaylight?

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

luis999 gravatar image

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

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 meshtopology.py --topo mytopo --controller=remote,ip=10.0.0.1

h1------------s1---------------s2----------------h2

         l           l

h3------------s3---------------s4----------------h4

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
1

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

karthik330 gravatar image

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

  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

https://wiki.opendaylight.org/view/Op...OpenFlowPlugin::EndtoEnd_Inventory

https://wiki.opendaylight.org/view/Op...

https://wiki.opendaylight.org/view/Ed...

  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

Comments

thank you, it help me alot.

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

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

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

Follow
1 follower

Stats

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

Seen: 368 times

Last updated: Mar 22 '16