refactor: further simplify fastdp initialisation

This commit is contained in:
Matthias Radestock committed 2016-01-02 13:17:40 +00:00
1 parent 13f37edb64
commit 0ee22af32d
2 files changed
+6 -17

No files matched your search

+1 -5
View File
@@ -169,11 +169,7 @@ func main() {
// options can override that below. Even if both
// things are overridden, we might need bridging on
// the datapath.
fastdp, err := weave.NewFastDatapath(weave.FastDatapathConfig{
DatapathName: datapathName,
Port: config.Port,
})
fastdp, err := weave.NewFastDatapath(datapathName, config.Port)
checkFatal(err)
networkConfig.Bridge = fastdp.Bridge()
overlays.Add("fastdp", fastdp.Overlay())