Also avoid calling ethtool in expose and hide
Those two commands are used in the pre-docker phase when you setup your weave bridge using create-bridge, e.g. inside /etc/network/interfaces.
This commit is contained in:
1 parent
17f6653cae
commit
d77e3a4c22
1 file changed
+2
-2
@@ -592,7 +592,7 @@ case "$COMMAND" in
|
|||||||
expose)
|
expose)
|
||||||
[ $# -eq 1 ] || usage
|
[ $# -eq 1 ] || usage
|
||||||
validate_cidr $1
|
validate_cidr $1
|
||||||
create_bridge
|
create_bridge --without-ethtool
|
||||||
if ! ip addr show dev $BRIDGE | grep -qF $1
|
if ! ip addr show dev $BRIDGE | grep -qF $1
|
||||||
then
|
then
|
||||||
ip addr add dev $BRIDGE $1
|
ip addr add dev $BRIDGE $1
|
||||||
@@ -603,7 +603,7 @@ case "$COMMAND" in
|
|||||||
hide)
|
hide)
|
||||||
[ $# -eq 1 ] || usage
|
[ $# -eq 1 ] || usage
|
||||||
validate_cidr $1
|
validate_cidr $1
|
||||||
create_bridge
|
create_bridge --without-ethtool
|
||||||
if ip addr show dev $BRIDGE | grep -qF $1
|
if ip addr show dev $BRIDGE | grep -qF $1
|
||||||
then
|
then
|
||||||
ip addr del dev $BRIDGE $1
|
ip addr del dev $BRIDGE $1
|
||||||
|
|||||||
Reference in new issue
Block a user