Dimitrios Mavrommatis | 45eb6d6 | 2017-12-03 22:07:36 -0800 | [diff] [blame] | 1 | #!/bin/bash |
Dimitrios Mavrommatis | a9df596 | 2017-12-05 15:11:04 -0800 | [diff] [blame] | 2 | |
| 3 | if [ "$#" -eq 1 ]; then |
| 4 | echo "" |
| 5 | curl -i --header "Content-type: application/json" --request POST -u onos:rocks --data '{ |
| 6 | "dpns": [ |
| 7 | { |
| 8 | "dpn-id": '$1', |
| 9 | "dpn-name": "site1-anchor1", |
| 10 | "dpn-groups": [ |
| 11 | "foo" |
| 12 | ], |
| 13 | "node-id": "node'$1'", |
Dimitrios Mavrommatis | 2b9f5f8 | 2017-12-07 16:23:13 -0800 | [diff] [blame] | 14 | "network-id": "network'$1'", |
Dimitrios Mavrommatis | 6d4d5ce | 2017-12-13 11:35:55 -0800 | [diff] [blame] | 15 | "control-protocol": "zmq-dpn-control-protocol", |
| 16 | "abstract": false |
Dimitrios Mavrommatis | a9df596 | 2017-12-05 15:11:04 -0800 | [diff] [blame] | 17 | } |
| 18 | ] |
slowr | dde30ad | 2017-12-21 14:16:04 -0500 | [diff] [blame] | 19 | }' 'http://192.168.105.14:8181/onos/restconf/data/ietf-dmm-fpcagent:tenants/tenant=default/fpc-topology' |
Dimitrios Mavrommatis | 7c0ff01 | 2017-12-07 00:25:58 -0800 | [diff] [blame] | 20 | echo "" |
Dimitrios Mavrommatis | a9df596 | 2017-12-05 15:11:04 -0800 | [diff] [blame] | 21 | else |
Dimitrios Mavrommatis | 7c0ff01 | 2017-12-07 00:25:58 -0800 | [diff] [blame] | 22 | echo "usage: "$0" dpnId (tenantId)" |
| 23 | fi |