@@ -712,11 +712,11 @@ func (plugin *NetPlugin) createEpInfo(opt *createEpInfoOpt) (*network.EndpointIn
712712 if opt .ifInfo .NICType == cns .InfraNIC && ! * opt .infraSeen {
713713 // so we do not break existing scenarios, only the first infra gets the original endpoint id generation
714714 ifName = opt .args .IfName
715- endpointID = plugin .nm .GetEndpointID (opt .args .ContainerID , ifName )
715+ endpointID = plugin .nm .GetEndpointID (opt .args .ContainerID , ifName , opt . ifInfo . NICType )
716716 * opt .infraSeen = true
717717 } else {
718718 ifName = "eth" + strconv .Itoa (opt .endpointIndex )
719- endpointID = plugin .nm .GetEndpointID (opt .args .ContainerID , ifName )
719+ endpointID = plugin .nm .GetEndpointID (opt .args .ContainerID , ifName , opt . ifInfo . NICType )
720720 }
721721
722722 endpointInfo := network.EndpointInfo {
@@ -1096,7 +1096,7 @@ func (plugin *NetPlugin) Delete(args *cniSkel.CmdArgs) error {
10961096 // for when the endpoint is not created, but the ips are already allocated (only works if single network, single infra)
10971097 // this block is not applied to stateless CNI
10981098 if len (epInfos ) == 0 {
1099- endpointID := plugin .nm .GetEndpointID (args .ContainerID , args .IfName )
1099+ endpointID := plugin .nm .GetEndpointID (args .ContainerID , args .IfName , cns . InfraNIC )
11001100 if ! nwCfg .MultiTenancy {
11011101 logger .Warn ("Could not query endpoint" ,
11021102 zap .String ("endpoint" , endpointID ),
0 commit comments