Merge pull request #2466 from weaveworks/issues/2464-enable-create-bridge
Re-enable 'weave create-bridge' in fastdp mode.
This commit is contained in:
commit
472eab2acd
1 file changed
+9
-7
@@ -1933,22 +1933,24 @@ 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)
|
||||||
cat 1>&2 <<EOF
|
if [ "$1" != "--force" ] ; then
|
||||||
|
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
|
||||||
started. Note that, unlike 'weave create-bridge', 'weave attach-bridge' is
|
started. Note that, unlike 'weave create-bridge', 'weave attach-bridge' is
|
||||||
compatible with fast data path.
|
compatible with fast data path.
|
||||||
EOF
|
EOF
|
||||||
# This subcommand may be run without the docker daemon, but
|
# This subcommand may be run without the docker daemon, but
|
||||||
# fastdp needs to run the router container to setup the ODP
|
# fastdp needs to run the router container to setup the ODP
|
||||||
# bridge, hence:
|
# bridge, hence:
|
||||||
if [ -z "$WEAVE_NO_FASTDP" ] ; then
|
if [ -z "$WEAVE_NO_FASTDP" ] ; then
|
||||||
cat 1>&2 <<EOF
|
cat 1>&2 <<EOF
|
||||||
|
|
||||||
ERROR: 'weave create-bridge' is not compatible with fast data path. If you
|
ERROR: 'weave create-bridge' is not compatible with fast data path. If you
|
||||||
really want to do this please set the WEAVE_NO_FASTDP environment variable.
|
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
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in new issue
Block a user