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:
Martynas Pumputis committed 2017-06-27 18:38:21 +02:00
1 parent 3499dbfe09
commit f37377264b
3 files changed
+15 -8

No files matched your search

+1 -1
View File
@@ -282,7 +282,7 @@ func main() {
name := peerName(routerName, bridgeConfig.WeaveBridgeName, dbPrefix, hostRoot)
bridgeConfig.Mac = name.String()
bridgeType, err := weavenet.EnsureBridge(procPath, &bridgeConfig)
bridgeType, err := weavenet.EnsureBridge(procPath, &bridgeConfig, Log)
checkFatal(err)
Log.Println("Bridge type is", bridgeType)