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 add Flow in each Switch?

asked 2015-09-22 06:00:15 -0700

karthik330 gravatar image

Hi , What is the API to add flows in each switches which are in the path between 2 hosts?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-22 06:41:25 -0700

Mandeep gravatar image

I think there is no direct API... you have to find all switches between 2 hosts and add flows.

edit flag offensive delete publish link more


ok fine.If suppose i am having only one switch,i need to add flow in MD-SAL API.How to do? I added Flow in AD-SAL API using http://{IP}:8080/controller/nb/v2/flowprogrammer/default/node/OF/ 00:00:00:00:00:00:00:01/staticFlow/flow1 PUT {"installInHw":"true", "name":"flow1", "node":{ "id":"00:00:00:00:00:00:00:01", "type":"OF" }, "ingressPort":"1", "priority":"500", "etherType":"0x800", "nwSrc":"", "actions":["ENQUEUE=2:0"]} Its working but i want to do the same thing in RestConf API.Can you help me..

karthik330 ( 2015-09-22 07:09:30 -0700 )edit

See and try to convert your AD-SAL Flow to MD-SAL.

Mandeep ( 2015-09-22 07:33:29 -0700 )edit

Thanx mandeep

karthik330 ( 2015-09-22 07:36:09 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-09-22 06:00:15 -0700

Seen: 395 times

Last updated: Sep 22 '15