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:
1 parent
2702b85ee5
commit
6dd109a5bb
4 files changed
+66
-21
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user