blob: 9c77d37e16f7860430cc217a2dba505642c22bc7 [file] [log] [blame]
Dimitrios Mavrommatis45eb6d62017-12-03 22:07:36 -08001#!/bin/bash
Dimitrios Mavrommatis92d93d52017-12-02 13:23:27 -08002curl -i --header "Content-type: application/json" --request POST -u onos:rocks --data '{
3 "dpns": [
4 {
Dimitrios Mavrommatisc53923a2017-12-03 19:48:48 -08005 "dpn-id": "1",
Dimitrios Mavrommatis92d93d52017-12-02 13:23:27 -08006 "dpn-name": "site1-anchor1",
7 "dpn-groups": [
8 "foo"
9 ],
Dimitrios Mavrommatisc53923a2017-12-03 19:48:48 -080010 "node-id": "node1",
11 "network-id": "network1"
Dimitrios Mavrommatis92d93d52017-12-02 13:23:27 -080012 }
13 ]
Dimitrios Mavrommatisc53923a2017-12-03 19:48:48 -080014}' 'http://localhost:8181/onos/restconf/data/ietf-dmm-fpcagent:tenants/tenant=default/fpc-topology'
Dimitrios Mavrommatis45eb6d62017-12-03 22:07:36 -080015./getTenants.sh