Only do ethtool tx off in bridged (pcap) mode.

Detect the bridge type in the same way the weave script does.
This commit is contained in:
Bryan Boreham committed 2016-05-25 17:34:13 +01:00
1 parent 2702b85ee5
commit 6dd109a5bb
4 files changed
+66 -21

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ func NewCNIPlugin(weave *weaveapi.Client) *CNIPlugin {
func loadNetConf(bytes []byte) (*NetConf, error) {
n := &NetConf{
BrName: "weave",
BrName: weavenet.WeaveBridgeName,
}
if err := json.Unmarshal(bytes, n); err != nil {
return nil, fmt.Errorf("failed to load netconf: %v", err)