Skip to content

Commit d0c32d5

Browse files
askyrieSongZhen0704
authored andcommitted
feat: deprecated ipvlan
1 parent fcb8ff2 commit d0c32d5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/controller/cloud/kubernetes_gather/vinterface_and_ip.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,13 @@ func (k *KubernetesGather) getVInterfacesAndIPs() (nodeSubnets, podSubnets []mod
149149
continue
150150
}
151151

152-
vMac := vItem.Mac
153-
if vItem.IFType == "ipvlan" {
154-
vMac = common.VIF_DEFAULT_MAC
155-
}
156-
157152
vinterfaceLcuuid := common.GetUUIDByOrgID(k.orgID, podLcuuid+vItem.Mac)
158153
if !vinterfaceLcuuids.Contains(vinterfaceLcuuid) {
159154
vinterfaceLcuuids.Add(vinterfaceLcuuid)
160155
vinterface := model.VInterface{
161156
Lcuuid: vinterfaceLcuuid,
162157
Type: common.VIF_TYPE_LAN,
163-
Mac: vMac,
158+
Mac: vItem.Mac,
164159
TapMac: vItem.TapMac,
165160
NetnsID: vItem.NetnsID,
166161
VTapID: vItem.VtapID,

0 commit comments

Comments
 (0)