Search code examples
openflowopendaylight

Opendaylight: how to get MAC address of switch from datapath ID?


I am developing an application for opendaylight Carbon where I need to know the MAC address of the switch. Can I determine this from the DpnId when the switch connects? Thanks.


Solution

  • The DPID uniquely identifies the switch. The MAC address is generally not exposed. Moreover, the switch itself generally does not have a MAC address (they may have tens of MAC addresses for different functions/interfaces). Switches work at a lower level, though, they work with MAC addresses.