Skip to content

Commit

Permalink
vxlan: fix registerNetwork function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
rakelkar committed Feb 4, 2018
1 parent 8fc63bc commit 71beccd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/vxlan/vxlan_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ package vxlan
import (
"encoding/json"
"fmt"
"sync"

log "github.com/golang/glog"

"golang.org/x/net/context"

"errors"

"github.com/Microsoft/hcsshim"
"github.com/coreos/flannel/backend"
"github.com/coreos/flannel/pkg/ip"
Expand Down Expand Up @@ -66,7 +68,7 @@ func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backend.Backen
return be, nil
}

func (be *VXLANBackend) RegisterNetwork(ctx context.Context, config *subnet.Config) (backend.Network, error) {
func (be *VXLANBackend) RegisterNetwork(ctx context.Context, wg sync.WaitGroup, config *subnet.Config) (backend.Network, error) {
// TODO: are these used? how to pass to HNS?
cfg := struct {
name string
Expand Down Expand Up @@ -188,4 +190,4 @@ func (be *VXLANBackend) RegisterNetwork(ctx context.Context, config *subnet.Conf
}

return n, nil
}
}

0 comments on commit 71beccd

Please sign in to comment.