Skip to content

Commit 01f94d0

Browse files
askyrieSongZhen0704
authored andcommitted
feat: update k8s pod net
1 parent e443f46 commit 01f94d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/controller/cloud/kubernetes_gather/vinterface_and_ip.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ func (k *KubernetesGather) getVInterfacesAndIPs() (nodeSubnets, podSubnets []mod
752752
var pV4cidrs, pV6cidrs []string
753753
var pV4cidr, pV6cidr, pV4SLcuuid, pV6SLcuuid string
754754
if len(podV4Cidrs) != 0 {
755-
pV4cidrs = cloudcommon.AggregateCIDR(podV4Cidrs, 0)
755+
pV4cidrs = cloudcommon.AggregateCIDR(podV4Cidrs, k.PodNetIPv4CIDRMaxMask)
756756
if len(pV4cidrs) == 1 {
757757
pV4cidr = pV4cidrs[0]
758758
pV4SLcuuid = common.GetUUIDByOrgID(k.orgID, k.podNetworkLcuuidCIDRs.networkLcuuid+pV4cidr)
@@ -766,7 +766,7 @@ func (k *KubernetesGather) getVInterfacesAndIPs() (nodeSubnets, podSubnets []mod
766766
}
767767
}
768768
if len(podV6Cidrs) != 0 {
769-
pV6cidrs = cloudcommon.AggregateCIDR(podV6Cidrs, 0)
769+
pV6cidrs = cloudcommon.AggregateCIDR(podV6Cidrs, k.PodNetIPv6CIDRMaxMask)
770770
if len(pV6cidrs) == 1 {
771771
pV6cidr = pV6cidrs[0]
772772
pV6SLcuuid = common.GetUUIDByOrgID(k.orgID, k.podNetworkLcuuidCIDRs.networkLcuuid+pV6cidr)

0 commit comments

Comments
 (0)