Browse Source

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

wadecai 4 years ago
parent
commit
42c1cc9c0a
1 changed files with 4 additions and 1 deletions
  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
 }