Nodes

Nodes

Sample request 

List all learned end hosts:

GET /sdn/v2.0/net/nodes

List all learned end hosts with the given vlan id:

GET /sdn/v2.0/net/nodes?vid=3

List a learned host with the given host IP and vlan id:

GET /sdn/v2.0/net/nodes?ip="10.0.0.3"&vid=3

List all learned end hosts connected to the given datapath:

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

List all learned end hosts connected to the given switch port:

GET /sdn/v2.0/net/nodes?dpid="00:00:00:00:00:00:00:02"&port=3

There is no request body for this API.

Sample response 

{
   "nodes":[
      {
         "ip":"10.0.0.6",
         "mac":"a2:c0:98:8e:ec:4a",
         "dpid":"00:00:00:00:00:00:00:02",
         "port":3,
         "vid":3
      }
   ]
}

Response codes 

  • Normal: OK (200)

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