blob: 8f3b00c138c8181db264fe07ad1efa18df370ff6 [file] [log] [blame]
slowra65d87f2018-01-21 20:40:55 +02001#!/bin/bash
2
3if [ "$#" -eq 1 ]; then
4 echo ""
5 curl -i --header "Content-type: application/json" --request POST -u onos:rocks --data '{
6 "dpns": [
7 {
Carmelo Cascone773fcc02018-01-23 20:10:43 -05008 "dpn-id": "'$1'",
slowra65d87f2018-01-21 20:40:55 +02009 "dpn-name": "site1-anchor1",
10 "dpn-groups": [
11 "foo"
12 ],
13 "node-id": "node'$1'",
14 "network-id": "network'$1'",
15 "control-protocol": "p4-dpn-control-protocol",
16 "abstract": false
17 }
18 ]
19 }' 'http://192.168.105.14:8181/onos/restconf/data/ietf-dmm-fpcagent:tenants/tenant=default/fpc-topology'
20 echo ""
21else
22 echo "usage: "$0" dpnId (tenantId)"
23fi