Dimitrios Mavrommatis | 45eb6d6 | 2017-12-03 22:07:36 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
Dimitrios Mavrommatis | 92d93d5 | 2017-12-02 13:23:27 -0800 | [diff] [blame] | 2 | curl -i --header "Content-type: application/json" --request POST -u onos:rocks --data '{ |
| 3 | "dpns": [ |
| 4 | { |
Dimitrios Mavrommatis | c53923a | 2017-12-03 19:48:48 -0800 | [diff] [blame] | 5 | "dpn-id": "1", |
Dimitrios Mavrommatis | 92d93d5 | 2017-12-02 13:23:27 -0800 | [diff] [blame] | 6 | "dpn-name": "site1-anchor1", |
| 7 | "dpn-groups": [ |
| 8 | "foo" |
| 9 | ], |
Dimitrios Mavrommatis | c53923a | 2017-12-03 19:48:48 -0800 | [diff] [blame] | 10 | "node-id": "node1", |
| 11 | "network-id": "network1" |
Dimitrios Mavrommatis | 92d93d5 | 2017-12-02 13:23:27 -0800 | [diff] [blame] | 12 | } |
| 13 | ] |
Dimitrios Mavrommatis | c53923a | 2017-12-03 19:48:48 -0800 | [diff] [blame] | 14 | }' 'http://localhost:8181/onos/restconf/data/ietf-dmm-fpcagent:tenants/tenant=default/fpc-topology' |
Dimitrios Mavrommatis | 45eb6d6 | 2017-12-03 22:07:36 -0800 | [diff] [blame^] | 15 | ./getTenants.sh |