HP VAN SDN Controller REST API Guide

82 "opcode": "BOOT_REQ",
83 "boot_flags": "BROADCAST",
84 "client_ip": "0.0.0.0",
85 "your_client_ip": "0.0.0.0",
86 "next_server_ip": "0.0.0.0",
87 "relay_agent_ip": "0.0.0.0",
88 "client_mac": "00:1E:0B:AE:D3:BE",
89 "options": [
90 { "type": "DISCOVER" },
91 { "parameter_request_list": ["SUBNET_MASK","HOST_NAME"] }
92 ]
93 }
94 }
95 ]
96 }
Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Create a packet
Sample request
POST /sdn/v2.0/diag/packets
Sample request body:
1 {"packet": {
2 "type": "UDP",
3 "eth": {
4 "eth_src" : "01:01:01:01:01:01",
5 "eth_dst" : "02:02:02:02:02:02",
6 "eth_type": "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 }
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",
76 /sdn/v2.0/net