initialize via sub-function

This commit is contained in:
Bryan Boreham committed 2016-05-25 17:17:19 +01:00
1 parent 9f8b94645d
commit 9aaa7f19fd
3 files changed
+25 -27

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ func (driver *driver) JoinEndpoint(j *api.JoinRequest) (*api.JoinResponse, error
driver.logReq("JoinEndpoint", j, fmt.Sprintf("%s:%s to %s", j.NetworkID, j.EndpointID, j.SandboxKey))
name, peerName := vethPair(j.EndpointID)
if _, err := weavenet.CreateAndAttachVeth(name, peerName, WeaveBridge, 0); err != nil {
if _, err := weavenet.CreateAndAttachVeth(name, peerName, WeaveBridge, 0, nil); err != nil {
return nil, driver.error("JoinEndpoint", "%s", err)
}