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 88fa4d4 commit ca79fa8
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,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 ca79fa8

Please sign in to comment.