@@ -712,11 +712,11 @@ func (plugin *NetPlugin) createEpInfo(opt *createEpInfoOpt) (*network.EndpointIn
712
712
if opt .ifInfo .NICType == cns .InfraNIC && ! * opt .infraSeen {
713
713
// so we do not break existing scenarios, only the first infra gets the original endpoint id generation
714
714
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 )
716
716
* opt .infraSeen = true
717
717
} else {
718
718
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 )
720
720
}
721
721
722
722
endpointInfo := network.EndpointInfo {
@@ -1096,7 +1096,7 @@ func (plugin *NetPlugin) Delete(args *cniSkel.CmdArgs) error {
1096
1096
// for when the endpoint is not created, but the ips are already allocated (only works if single network, single infra)
1097
1097
// this block is not applied to stateless CNI
1098
1098
if len (epInfos ) == 0 {
1099
- endpointID := plugin .nm .GetEndpointID (args .ContainerID , args .IfName )
1099
+ endpointID := plugin .nm .GetEndpointID (args .ContainerID , args .IfName , cns . InfraNIC )
1100
1100
if ! nwCfg .MultiTenancy {
1101
1101
logger .Warn ("Could not query endpoint" ,
1102
1102
zap .String ("endpoint" , endpointID ),
0 commit comments