소스 검색

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

wadecai 4 년 전
부모
커밋
42c1cc9c0a
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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
 }