Fix fallback to pcap based bridge when odp is not supported
The fix ensures that if odp is not supported (usually due to missing openvswitch, vxlan or vport-vxlan kernel modules), weaver will create the pcap based bridge instead of crashing.
This commit is contained in:
1 parent
3499dbfe09
commit
f37377264b
3 files changed
+15
-8
No files matched your search
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/weaveworks/weave/common"
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
)
|
||||
|
||||
@@ -47,7 +48,7 @@ func createBridge(args []string) error {
|
||||
NPC: args[9] == "--expect-npc",
|
||||
}
|
||||
procPath := args[8]
|
||||
bridgeType, err := weavenet.EnsureBridge(procPath, &config)
|
||||
bridgeType, err := weavenet.EnsureBridge(procPath, &config, common.Log)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user