Rome hackathon work integrated onto boron.
[unimgr.git] / restclient / unimgr.txt
1 # -*- restclient -*-
2 # Settings
3 :host = http://localhost:8181
4 :basic-auth := (format "Basic %s" (base64-encode-string (format "%s:%s" "admin" "admin")))
5
6 # Modules
7 GET :host/restconf/modules
8 Authorization: :basic-auth
9
10 # Operational Network Topology
11 GET :host/restconf/operational/network-topology:network-topology/
12 Authorization: :basic-auth
13 Accept: application/xml
14
15 # Config Network Topology
16 GET :host/restconf/config/network-topology:network-topology/
17 Authorization: :basic-auth
18 Accept: application/xml
19
20 # Delete UNI
21 DELETE :host/restconf/config/network-topology:network-topology/topology/unimgr:uni/node/uni:%2F%2F192.168.2.10
22 Authorization: :basic-auth
23
24 # Delete ovsdb:1
25 DELETE :host/restconf/config/network-topology:network-topology/topology/ovsdb:1/
26 Authorization: :basic-auth
27
28 # New UNI
29 POST :host/restconf/config/network-topology:network-topology/topology/unimgr:uni/
30 Content-type: application/json
31 Authorization: :basic-auth
32 {
33   "node": [
34     {
35       "node-id": "uni://192.168.2.12",
36       "cl-unimgr-mef:type": "",
37       "cl-unimgr-mef:mtu-size": 0,
38       "cl-unimgr-mef:physical-medium": "UNI TypeFull Duplex 2 Physical Interface",
39       "cl-unimgr-mef:ip-address": "192.168.2.12",
40       "cl-unimgr-mef:mode": "Full Duplex",
41       "cl-unimgr-mef:speed": {
42         "speed-1G": 1
43       },
44       "cl-unimgr-mef:mac-layer": "IEEE 802.3-2005",
45       "cl-unimgr-mef:mac-address": "68:5b:35:bb:f8:3c"
46     }
47   ]
48 }
49
50 # Delete UNI
51 DELETE :host/restconf/config/network-topology:network-topology/topology/unimgr:uni/node/uni:%2f%2f192.168.2.12
52 Authorization: :basic-auth
53
54
55 # OVSDB
56 GET :host/restconf/ovsdb:ovsdb/
57 Authorization: :basic-auth
58
59 # Cisco ASR 101
60 GET :host/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/asr-101
61 Authorization: :basic-auth