HP VAN SDN Controller REST API Guide
13 "ip_proto": "UDP",
14 "ip_dscn": "CS0",
15 "ip_scn": "NOT_ECT"
16 },
17 "udp": {
18 "udp_dst": 152,
19 "udp_src": 12345
20 }
21 }
22 }
Response codes
• Normal: Created (201)
• Error: Bad Request (400), Unauthorized (401), Service Unavailable (503)
Diag/packets/{packet uid}
List a packet
Sample request
List the packet with the specified packet identifier:
GET /sdn/v2.0/diag/packets/2
There is no request body for this API.
Sample response
1 {"packet": {
2 "uid": "2",
3 "eth": {
4 "eth_src" : "01:01:01:01:01:01",
5 "eth_dst" : "02:02:02:02:02:02",
6 "eth_type": "0x0800(IPv4)",
7 "vlan_vid" : "100",
8 "vlan_priority" : "PRIORITY_5"
9 },
10 "ip": {
11 "ipv4_dst": "10.0.100.102",
12 "ipv4_src": "10.0.100.101",
13 "ip_proto": "UDP",
14 "ip_dscn": "CS0",
15 "ip_scn": "NOT_ECT"
16 },
17 "udp": {
18 "udp_dst": 152,
19 "udp_src": 12345
20 }
21 }
22 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Delete a packet
Sample request
Delete a packet with the given packet identifier:
DELETE /sdn/v2.0/diag/packets/3
Diagnostics 77