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


Renaming switches in ODL

asked 2016-03-14 14:40:43 -0700

sterdnotshaken gravatar image

I currently have 3 Brocade switches setup as OF switches in ODL. The long string of numbers ODL assigns these switches isn't (from what I can tell) something I can retrieve from the actual switch using all the openflow commands I know (Brocade MLX's and ICX's), which means I need to load up Yang UI to get said arbitrary number... Is there any way to change the name ODL assigns a switch to something more memorable?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-03-25 02:47:21 -0700

ngg1 gravatar image

updated 2016-03-25 03:02:31 -0700


I had a similar question. It may be useful to understand the controller negotiation process when a switch first connects:

OpenFlow enabled switches and controllers goes through a procedure called a Handshake. During this exchange of messages, the two parties gather information about one another, such as the Data-path ID to uniquely identify the switch, the maximum capacity of the buffer and how many bytes of a packet to send to the Controller

odl controller negotiation


I'm not sure about brocade switches, but apparently using openvswitch, you can set your datapath_id with the below command:

ovs-vsctl set bridge <mybr> other-config:datapath-id=<datapathid>

If you issue this command in openvswitch, you can also view the datapath-id:

 ovs-vsctl list bridge <mybr>

which gives you something like this:

_uuid               : 59e17067-5708-4829-8fca-9e5eee5134af
controller          : [80e4a4e5-2021-47f6-81fa-330a4f7fbbe1]
datapath_id         : "00006670e1592948"
datapath_type       : ""
external_ids        : {}
fail_mode           : []
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mirrors             : []

Let me know if this helps.


edit flag offensive delete publish link more


Thanks for taking the time to answer my question SG! Very useful. Yea, it appears Brocade won't allow you to rename the datapath_id, at least from what I can see... So looks like I'm out of luck. Thanks again

sterdnotshaken ( 2016-03-29 09:33:15 -0700 )edit

answered 2016-03-17 16:09:26 -0700

sterdnotshaken gravatar image

So, is this not currently possible?

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-03-14 14:40:43 -0700

Seen: 140 times

Last updated: Mar 25 '16