Skip to content

Commit

Permalink
feat: deprecated ipvlan
Browse files Browse the repository at this point in the history
  • Loading branch information
askyrie authored and SongZhen0704 committed Dec 18, 2024
1 parent f25b527 commit 8e2ebd5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,13 @@ func (k *KubernetesGather) getVInterfacesAndIPs() (nodeSubnets, podSubnets []mod
continue
}

vMac := vItem.Mac
if vItem.IFType == "ipvlan" {
vMac = common.VIF_DEFAULT_MAC
}

vinterfaceLcuuid := common.GetUUIDByOrgID(k.orgID, podLcuuid+vItem.Mac)
if !vinterfaceLcuuids.Contains(vinterfaceLcuuid) {
vinterfaceLcuuids.Add(vinterfaceLcuuid)
vinterface := model.VInterface{
Lcuuid: vinterfaceLcuuid,
Type: common.VIF_TYPE_LAN,
Mac: vMac,
Mac: vItem.Mac,
TapMac: vItem.TapMac,
NetnsID: vItem.NetnsID,
VTapID: vItem.VtapID,
Expand Down

0 comments on commit 8e2ebd5

Please sign in to comment.