ran 'go fmt'; cosmetic changes
This commit is contained in:
1 parent
a113da0e34
commit
94e00e2c8e
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bboreham/weave"
|
"github.com/zettio/weave"
|
||||||
"code.google.com/p/gopacket/layers"
|
"code.google.com/p/gopacket/layers"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"flag"
|
"flag"
|
||||||
|
|||||||
+2
-1
@@ -106,7 +106,8 @@ ip netns exec $NSPID ip link set $GUEST_IFNAME name $CONTAINER_IFNAME
|
|||||||
ip netns exec $NSPID ip addr add $IPADDR dev $CONTAINER_IFNAME
|
ip netns exec $NSPID ip addr add $IPADDR dev $CONTAINER_IFNAME
|
||||||
ip netns exec $NSPID ip link set $CONTAINER_IFNAME up
|
ip netns exec $NSPID ip link set $CONTAINER_IFNAME up
|
||||||
|
|
||||||
if command -v ethtool >/dev/null 2>&1 ; then
|
if [ command -v ethtool >/dev/null 2>&1 ]
|
||||||
|
then
|
||||||
ip netns exec $NSPID ethtool -K $IFACE tx off > /dev/null
|
ip netns exec $NSPID ethtool -K $IFACE tx off > /dev/null
|
||||||
else
|
else
|
||||||
echo "Cannot find ethtool; continuing without it" >&2
|
echo "Cannot find ethtool; continuing without it" >&2
|
||||||
|
|||||||
Reference in new issue
Block a user