How to detect the port link down event in ODL CODE

asked 2015-04-17 01:27:26 -0700

Luke123 gravatar image

I have 2 switches that are connected to eatch other. When I take down the link between them the topology updates witout the link between the swiches.

I want to find out how Opendaylight keep track of this inside the code. I have found a way to se if a host is down inside ODL with a function inside the: org.opendaylight.controller.hosttracker package
But then again I want to se if a port is up or down within the code

I know how to get this information inside the Rest API:
http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1

edit retag flag offensive close merge delete