Allow 'weave create-bridge', if the user insists.

For example this is used when setting up CNI for Kubernetes, in
an environment where we know none of the bad consequences apply.
This commit is contained in:
Bryan Boreham committed 2016-08-08 17:20:25 +01:00
1 parent ed83efbceb
commit 7a5d7fca6c
1 file changed
+2
+2
View File
@@ -1933,6 +1933,7 @@ case "$COMMAND" in
# intentionally undocumented since it assumes knowledge of weave # intentionally undocumented since it assumes knowledge of weave
# internals # internals
create-bridge) create-bridge)
if [ "$1" != "--force" ] ; then
cat 1>&2 <<EOF cat 1>&2 <<EOF
WARNING: 'weave create-bridge' is deprecated. Instead use 'weave attach-bridge' 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 to link the docker and weave bridges after both docker and weave have been
@@ -1950,6 +1951,7 @@ really want to do this please set the WEAVE_NO_FASTDP environment variable.
EOF EOF
exit 1 exit 1
fi fi
fi
create_bridge --without-ethtool create_bridge --without-ethtool
;; ;;
attach-bridge) attach-bridge)