blob: 41b7c7f70aaf530b20a09f67ff0de6a3443bdfbf [file] [log] [blame]
Dimitrios Mavrommatis92d93d52017-12-02 13:23:27 -08001#!/bin/bash
Dimitrios Mavrommatisa9df5962017-12-05 15:11:04 -08002if [ "$#" -eq 1 ]; then
3 echo ""
4 curl -X DELETE -u onos:rocks 'http://localhost:8181/onos/restconf/data/ietf-dmm-fpcagent:tenants/tenant=default/fpc-topology/dpns='$1
5 ./getTenants.sh
Dimitrios Mavrommatis7c0ff012017-12-07 00:25:58 -08006elif [ "$#" -eq 2 ]; then
7 echo ""
8 curl -X DELETE -u onos:rocks 'http://localhost:8181/onos/restconf/data/ietf-dmm-fpcagent:tenants/tenant='$2'/fpc-topology/dpns='$1
9 ./getTenants.sh
Dimitrios Mavrommatisa9df5962017-12-05 15:11:04 -080010else
Dimitrios Mavrommatis7c0ff012017-12-07 00:25:58 -080011 echo "usage: "$0" dpnId (tenantId)"
Dimitrios Mavrommatisa9df5962017-12-05 15:11:04 -080012fi