HP VAN SDN Controller REST API Guide
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
1 {"nodes": [{
2 "ip": "10.0.0.6",
3 "mac": "a2:c0:98:8e:ec:4a",
4 "dpid": "00:00:00:00:00:00:00:02",
5 "port": 3,
6 "vid": 3
7 }]}
Response codes
• Normal: OK (200)
• Error: Bad Request (400), Unauthorized (401), Not Found (404), Service Unavailable (503)
LLDP
Lldp
List LLDP-suppressed ports
Sample request
List all LLDP-suppressed ports:
GET /sdn/v2.0/net/lldp
There is no request body.
Sample response
1 {"lldp_suppressed": [{
2 "dpid": "00:00:00:00:00:00:00:02",
3 "ports": [ 3, 5, 7 ]
4 }]}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Add port(s) to LLDP-suppressed list
Sample request
Add the given port(s) LLDP-suppressed port list (bulk add):
POST /sdn/v2.0/net/lldp
Sample request body:
1 {"lldp_suppressed": [{
2 "dpid": "00:00:00:00:00:00:00:02",
LLDP 71