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:
1 parent
7ebf3d7a88
commit
0cbf5ca130
1 file changed
+2
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user