Merge pull request #2942 from weaveworks/remove-weave-create-bridge
Remote deprecated create-bridge command
This commit is contained in:
commit
9be11d9cf0
1 file changed
+1
-16
@@ -131,7 +131,7 @@ exec_options() {
|
|||||||
;;
|
;;
|
||||||
# All the other commands that may create the bridge and need machine id files.
|
# All the other commands that may create the bridge and need machine id files.
|
||||||
# We don't mount '/' to avoid recursive mounts of '/var'
|
# 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
|
echo -v /etc:/host/etc -v /var/lib/dbus:/host/var/lib/dbus -e HOST_ROOT=/host
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -1472,21 +1472,6 @@ case "$COMMAND" in
|
|||||||
[ $# -eq 0 ] || usage
|
[ $# -eq 0 ] || usage
|
||||||
ask_version $CONTAINER_NAME $IMAGE || true
|
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)
|
attach-bridge)
|
||||||
if detect_bridge_type ; then
|
if detect_bridge_type ; then
|
||||||
attach_bridge ${1:-$DOCKER_BRIDGE}
|
attach_bridge ${1:-$DOCKER_BRIDGE}
|
||||||
|
|||||||
Reference in new issue
Block a user