blob: ecc4f1844d05dfa31cf44fd9ff68e5599b621514 [file] [log] [blame]
Dimitrios Mavrommatis7c0ff012017-12-07 00:25:58 -08001#!/bin/bash
2
3if [ "$#" -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 ""
16else
17 echo "usage: "$0" tenantId"
18fi