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 detect the port link down event in opendaylight controller?

asked 2015-03-20 04:47:43 -0700

pjrnaveen gravatar image

I have created 2 switches and 2 Hosts topo using mininet. Between the switches,i have added two links.

Now i want to know, how to detect the link down event on the controller?

Basically i need to configure a flow after the link down event.

Can anybody help on that?

edit retag flag offensive close merge delete


You plan to use the Rest APIs or change the source code of the controller ?

Nuno ( 2015-03-20 17:44:38 -0700 )edit

Not the source code. I have a sample ad-sal application. It can can be installed from OSGI interface. So i thought of doing the code changes within the sample application.

pjrnaveen ( 2015-03-22 23:09:37 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-22 16:57:05 -0700

Nuno gravatar image

If you are using the Rest API you can query the controller to check if the link is up is several ways.

For example this:


will return several information regarding that node including the ports and check if the link is up or down.

You can also use the ovsdb northbound Rest API to do the same and check if the interface is up or down.

for example:

If you poll the requests and constantly check when a link is up or down you can make decisions about that after. Don't forget to change the ovs id and controller IP to your parameters.

Regards, Nuno B.

edit flag offensive delete publish link more


Hi Nuno, Thanks for your reply. Am developing an AD-SAL based app as a separate pug-in. Is it possible to use the north-bound APIs here? Am totally new to this SDN. Can you help on this?

pjrnaveen ( 2015-03-22 22:54:26 -0700 )edit

I think since you have a module in the controller you can access the methods that do that. I'm building an external application thats why I use the rest API. I don't think you need to use rest api then.

Nuno ( 2015-03-23 06:29:54 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-03-20 04:47:43 -0700

Seen: 413 times

Last updated: Mar 22 '15