Implement weave forget command

This commit is contained in:
Adam Harrison committed 2015-03-26 10:48:25 +00:00
1 parent 066d8001dd
commit dc8e82ea31
4 files changed
+30 -1

No files matched your search

+5
View File
@@ -18,6 +18,7 @@ usage() {
echo "weave launch [-password <password>] [-nickname <nickname>] <peer> ..."
echo "weave launch-dns <cidr>"
echo "weave connect <peer>"
echo "weave forget <peer>"
echo "weave run [--with-dns] <cidr> <docker run args> ..."
echo "weave start <cidr> <container_id>"
echo "weave attach <cidr> <container_id>"
@@ -597,6 +598,10 @@ case "$COMMAND" in
[ $# -eq 1 ] || usage
http_call $CONTAINER_NAME $HTTP_PORT POST /connect -d "peer=$1"
;;
forget)
[ $# -eq 1 ] || usage
http_call $CONTAINER_NAME $HTTP_PORT POST /forget -d "peer=$1"
;;
status)
http_call $CONTAINER_NAME $HTTP_PORT GET /status || true
echo