Ask Your Question
0

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
2

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

Comments

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":"9.9.1.1", "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 https://wiki.opendaylight.org/view/Editing_OpenDaylight_OpenFlow_Plugin:End_to_End_Flows:Example_Flows 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

Follow
1 follower

Stats

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

Seen: 294 times

Last updated: Sep 22 '15