Parcourir la source

Bugfix: VtepMac would be empty when lease re-acquire for windows

wadecai il y a 4 ans
Parent
commit
42c1cc9c0a
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      backend/vxlan/vxlan_windows.go

+ 4 - 1
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
 }