forked from galthaus/ocb-dhcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper.txt
23 lines (15 loc) · 1014 Bytes
/
helper.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Commands that can be used to test:
# Create subnet
curl -X Post -H 'Content-Type: application/json' --data-binary @./test/subnet.json -k https://admin:[email protected]:6755/subnets
# Update a subnet
curl -X Put -H 'Content-Type: application/json' --data-binary @./test/subnet.json -k https://admin:[email protected]:6755/subnets/192.168.124.0
# List subnets
curl -k https://admin:[email protected]:6755/subnets
# list a subnet
curl -k https://admin:[email protected]:6755/subnets/192.168.124.0/24
# bind
curl -X Put -H 'Content-Type: application/json' --data-binary @./test/bind.json -k https://admin:[email protected]:6755/subnets/192.168.124.0/bind
# unbind
curl -X Delete -H 'Content-Type: application/json' --data-binary @./test/bind.json -k https://admin:[email protected]:6755/subnets/192.168.124.0/bind/aa:bb:cc:dd:ee:ff
# Next server
curl -X Put -H 'Content-Type: application/json' --data-binary @./test/next_server.json -k https://admin:[email protected]:6755/subnets/192.168.124.0/next_server/192.168.124.22