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


API call to get openflow:id

asked 2016-05-05 08:36:56 -0700

jpete2477 gravatar image

I have connected a switch to ODL using a remote API call to the switch. I can verify that the device is connected to ODL. Is there a way that I can pass a mac or serial or IP or some other unique value to the ODL API to get the openflow id?

Use case: new device comes on the network. Script is triggered to connect device to ODL / other system resources. In order to manage OVS on the device through ODL I must have the openflow:id associated to that device in ODL. I can brute force it and do a topology discovery and try to figure out what device is new but this is problematic if multiple devices come on line around the same time. I need a way to poll / query ODL directly and give it a MAC or IP or serial number or some bit of info and have it give me a response that can include the openflow:id.

Any thoughts on how to do that?

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-05-05 09:50:56 -0700

jamoluhrsen gravatar image

actually, the <id> in "openflow:<id>" should just be a decimal representation of your mac address.

we have simple python code in upstream ODL CSIT that does this, if it helps.

edit flag offensive delete publish link more


That worked perfectly! Thanks so much!

jpete2477 ( 2016-05-05 09:52:41 -0700 )edit

awesome! happy to help

jamoluhrsen ( 2016-05-05 10:41:17 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-05-05 08:36:56 -0700

Seen: 37 times

Last updated: May 05 '16