Chapter 5 /sdn/v2.0/net

Clusters

Sample request 

List all clusters:

GET /sdn/v2.0/net/clusters

There is no request body for this API.

Sample response 

{
   "clusters":[
      {
         "uid":"172334323",
         "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 

  • Normal: OK (200)

  • Error: Unauthorized (401), Not Found (404), Service Unavailable (503)

Clusters/{cluster uid}/tree

Sample request 

Get info on a specific cluster

GET /sdn/v2.0/net/clusters/{cluster_uid}/tree

NOTE: Cluster has multiple attributes associated to it like Tree,Node,Links. Topology currently supports Tree of cluster hence appended tree in URI.


There is no request body for this API.

Sample response 

{
   "cluster":{
      "uid":"123456780",
      "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 

  • Normal: OK (200)

  • Error: Unauthorized (401), Not Found (404), Service Unavailable (503)