OpenDaylight: How to get the Data path ID?

417 views Asked by At

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?

1

There are 1 answers

1
Karthik Prasad On BEST ANSWER

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