Links

Sample request 

List all links:

GET /sdn/v2.0/net/links

List all neighboring links associated with the given dpid (src or dst):

GET /sdn/v2.0/net/links?dpid="00:00:00:00:00:00:00:02"

There is no request body for this API.

Sample response 

{
   "links":[
      {
         "src_dpid":"00:00:00:00:00:00:00:02",
         "src_port":3,
         "dst_dpid":"00:00:00:00:00:00:00:03",
         "dst_port":5
      }
   ]
}

Response codes