Ask Your Question
0

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

Comments

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
0

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:

http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1

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:

http://192.168.57.1:8080/ovsdb/nb/v2/node/OVS/192.168.57.102:40651/tables/interface/rows

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

Comments

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

Follow
1 follower

Stats

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

Seen: 282 times

Last updated: Mar 22 '15