diff --git a/backend/vxlan/vxlan_windows.go b/backend/vxlan/vxlan_windows.go index bec5a05887..a44eb7d474 100644 --- a/backend/vxlan/vxlan_windows.go +++ b/backend/vxlan/vxlan_windows.go @@ -191,7 +191,10 @@ func (be *VXLANBackend) RegisterNetwork(ctx context.Context, wg sync.WaitGroup, } lease, err = be.subnetMgr.AcquireLease(ctx, subnetAttrs) - + if err != nil { + return nil, err + } + network.SubnetLease = lease return network, nil }