Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Hi , To see the current topology details you can see the link which you mentioned already. It will give you the Node and Link details(Topology details).If you down/up any link connections ,It will be updated here also .

Hi , To see the current topology details you can see the link which you mentioned already. It will give you the Node and Link details(Topology details).If you down/up any link connections ,It will be updated here also .

Updated :

  1. I am not sure about existing api. You could do one thing. Go through L2->Loopremover->topologyLinkDatachangeHandler.java .There they will detect the link down/up event.So you have data which you need.Just expose your own api inside l2->loopremover , and use it!

You can also capture the link down/up data from topology details .Understand the data inside the topology(link id, source , sourceTP, destination, destinationTp ,etc).My suggestion is dont use A,B,C name for switch .make it openflow:1 ,openflow:2 So that you will understand the topology details easily.

Note: ODL we are using undirected Graph.

Just ex:

openflow:1--(port 2)--------------------------(Link)-----------------(port 1)--openflow:2

Since it is undirected graph this link name(Link ID) could be either openflow:1:2 or openflow:2:1 .This Link ID is what you are looking. when you down the link(A-B) ,this link (link ID) will be deleted from the topology details.

  1. For testing connecton , try ping between the devices.Since you pushed your flow, and doing link down it won't be reachable as expected.