HP VAN SDN Controller REST API Guide
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
1 {"links": [{
2 "src_dpid": "00:00:00:00:00:00:00:02",
3 "src_port": 3,
4 "dst_dpid": "00:00:00:00:00:00:00:03",
5 "dst_port": 5
6 }]}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Paths
Paths/forward
Sample request
List forward path between the given dpids:
GET
/sdn/v2.0/net/paths/forward?src_dpid="00:00:00:00:00:00:00:02"&dst_dpid="00:00:00:00:00:00:00:03"
List path between the given dpids that also matches the union of the given match fields:
GET /sdn/v2.0/net/paths/forward?src_dpid="00:00:00:00:00:00:00:02"&dst_dpid="
00:00:00:00:00:00:00:03"&vlan_id=4&ip_proto="udp"
NOTE: Match-field filtering has not been implemented yet! There is no request body for this API.
Sample response
1 {"path": {
2 "cost": 3,
3 "links": [{
4 "src_dpid": "00:00:00:00:00:00:00:02",
5 "src_port": 3,
6 "dst_dpid": "00:00:00:00:00:00:00:03",
7 "dst_port": 5
8 }]
9 }}
Links 69