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

0

API call to get openflow:id

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

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
1

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

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

Comments

That worked perfectly! Thanks so much!

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

awesome! happy to help

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

Question Tools

Follow
1 follower

Stats

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

Seen: 35 times

Last updated: May 05 '16