HP VAN SDN Controller REST API Guide
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Diag/packets/{packet uid}/nexthops
Get the next hop switch of the specified switch based on the packet identifier
Sample request
Get the next hop based on the packet identifier and the data path identifier:
GET /sdn/v2.0/diag/packets/1/nexthop?src_dpid="00:00:00:00:00:00:00:01"
There is no request body for this API.
Sample response
1 {"nexthop": {
2 "dpid" : "00:00:00:00:00:00:00:03",
3 "port": "3"
4 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Diag/packets{packet uid}/action
Simulate a packet
Sample request
Simulate a packet with the given packet identifier onto the network:
POST /sdn/v2.0/diag/packets/3/action
Sample request body:
• Use default which requires no request body. This means to simulate the packet at the switch
the host connects to
• Specify a json request to start simulation at a specific switch
1 {"simulation": {
2 "dpid": "00:00:00:00:00:00:00:01",
3 "out_port": "2"
4 }
5 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Diagnostics 79