Search code examples
openflowopendaylight

OpenDaylight: How to get the Data path ID?


I am attempting to build an SDN app with OpenDaylight. I use the Carbon (latest) release and the OpenFlow plugin. I am trying to use the genius package as it has a lot of support for installing flows and such. I expect multiple switches to connect so I have to specify the "datapath ID" (dpid) in installing the flow. How do I determine the "dpid" when the switch connects?


Solution

  • Have look at line number 88 in this file, we extract DP id from node connector