Dimitrios Mavrommatis | 92d93d5 | 2017-12-02 13:23:27 -0800 | [diff] [blame] | 1 | #!/bin/bash |
Dimitrios Mavrommatis | a9df596 | 2017-12-05 15:11:04 -0800 | [diff] [blame] | 2 | if [ "$#" -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 Mavrommatis | 7c0ff01 | 2017-12-07 00:25:58 -0800 | [diff] [blame^] | 6 | elif [ "$#" -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 Mavrommatis | a9df596 | 2017-12-05 15:11:04 -0800 | [diff] [blame] | 10 | else |
Dimitrios Mavrommatis | 7c0ff01 | 2017-12-07 00:25:58 -0800 | [diff] [blame^] | 11 | echo "usage: "$0" dpnId (tenantId)" |
Dimitrios Mavrommatis | a9df596 | 2017-12-05 15:11:04 -0800 | [diff] [blame] | 12 | fi |