Skip to content

Commit

Permalink
Fix Node AddressPrefix to use from Subnet instead of Network
Browse files Browse the repository at this point in the history
  • Loading branch information
madhanrm committed Sep 17, 2018
1 parent 67155e8 commit d9fbe61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/vxlan/vxlan_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ func (be *VXLANBackend) RegisterNetwork(ctx context.Context, wg sync.WaitGroup,
// check if the network exists and has the expected settings?
networkName := cfg.name
createNetwork := true
addressPrefix := config.Network
networkGatewayAddress := config.Network.IP + 1
addressPrefix := l.Subnet
networkGatewayAddress := l.Subnet.IP + 1
hnsNetwork, err := hcsshim.GetHNSNetworkByName(networkName)
if err == nil {
log.Infof("Found existing HNS network [%+v]", hnsNetwork)
Expand Down

0 comments on commit d9fbe61

Please sign in to comment.