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


L2-switch -

asked 2016-04-27 11:49:56 -0700

ashvanth48 gravatar image

updated 2016-04-27 11:50:54 -0700

The code description says

"Writes mac-to-mac flow on all ports that are in the path between given source and destination ports.* It uses path provided by org.opendaylight.l2switch.loopremover.topology.NetworkGraphService"

But the code seems to be working only if the source and destination are connected to the same node.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-27 21:08:06 -0700

karthik330 gravatar image

updated 2016-04-27 21:09:59 -0700

Hi , I also faced the same problem . If you check , there they commented the codes of finding shortestPath ! . You could see many questions about finding shortest path in the forum itself. So what i think is still they are in developing/changing the function for shortestPath.

For my case , I modified the to get the shortestpath and i created a class to push the port-based flow on all ports that are in the path between given source and destination ports.,Take a look at the L2switch code, If you need any help plz let me know!

Thanks, -Karthik

edit flag offensive delete publish link more


Thanks for the reply. Do you know how to retrieve the node ID of a switch. I have seen another reply of yours from a post asking the same question but I still could not find the answer

ashvanth48 ( 2016-04-28 04:02:24 -0700 )edit

NodeID of switch? Im sorry.Can you clarify this with example.I l try to help. Let's say switch openflow: 1 and here What do you mean nodeID ? If openflow: 1:3 is connected with openflow:2:1.. Do u want to take sourceTP (3) / destTP(1) ? .

karthik330 ( 2016-04-28 10:21:26 -0700 )edit

I want to get the list of switches from the datastore. How do I do that??

ashvanth48 ( 2016-04-28 13:05:26 -0700 )edit

do u want me to edit this answer?or can you ask separate question? I will paste the code.

karthik330 ( 2016-05-02 07:01:57 -0700 )edit

Hi I got the answer for this from another post of yours. Now I'm struck in code modification. I'm struck with code modification now.

ashvanth48 ( 2016-05-02 09:11:00 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-04-27 11:49:56 -0700

Seen: 104 times

Last updated: Apr 27 '16