Dimitrios Mavrommatis | 7c0ff01 | 2017-12-07 00:25:58 -0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | if [ "$#" -eq 1 ]; then | ||||
4 | echo "" | ||||
5 | curl -i --header "Content-type: application/json" --request POST -u onos:rocks --data '{ | ||||
6 | "tenants": [ | ||||
7 | { | ||||
8 | "fpc-mobility": {}, | ||||
9 | "fpc-policy": {}, | ||||
10 | "fpc-topology": {}, | ||||
11 | "tenant-id": "'$1'" | ||||
12 | } | ||||
13 | ] | ||||
14 | }' 'http://localhost:8181/onos/restconf/data/ietf-dmm-fpcagent' | ||||
15 | echo "" | ||||
16 | else | ||||
17 | echo "usage: "$0" tenantId" | ||||
18 | fi |