Merge pull request #2942 from weaveworks/remove-weave-create-bridge

Remote deprecated create-bridge command
This commit is contained in:
Marc Carré authored and GitHub committed 2017-05-10 12:28:53 +01:00
commit 9be11d9cf0
1 file changed
+1 -16
+1 -16
View File
@@ -131,7 +131,7 @@ exec_options() {
;;
# All the other commands that may create the bridge and need machine id files.
# We don't mount '/' to avoid recursive mounts of '/var'
create-bridge|attach|expose|hide)
attach|expose|hide)
echo -v /etc:/host/etc -v /var/lib/dbus:/host/var/lib/dbus -e HOST_ROOT=/host
;;
esac
@@ -1472,21 +1472,6 @@ case "$COMMAND" in
[ $# -eq 0 ] || usage
ask_version $CONTAINER_NAME $IMAGE || true
;;
# intentionally undocumented since it assumes knowledge of weave
# internals
create-bridge)
if [ "$1" != "--force" ] ; then
cat 1>&2 <<EOF
WARNING: 'weave create-bridge' is deprecated. Instead use 'weave attach-bridge'
to link the docker and weave bridges after both docker and weave have been
started. Note that, unlike 'weave create-bridge', 'weave attach-bridge' is
compatible with fast data path.
EOF
else
shift 1
fi
create_bridge "$@"
;;
attach-bridge)
if detect_bridge_type ; then
attach_bridge ${1:-$DOCKER_BRIDGE}