From 9ca7d88d737eaff2a16800a9a31f435506287b46 Mon Sep 17 00:00:00 2001 From: rejain456 Date: Fri, 10 Jan 2025 14:50:56 -0800 Subject: [PATCH] removed an infra nic check --- cni/network/network.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cni/network/network.go b/cni/network/network.go index bb87a07177..378084bc03 100644 --- a/cni/network/network.go +++ b/cni/network/network.go @@ -590,8 +590,9 @@ func (plugin *NetPlugin) Add(args *cniSkel.CmdArgs) error { } policies := cni.GetPoliciesFromNwCfg(nwCfg.AdditionalArgs) - policies = append(policies, ipamAddResult.interfaceInfo[string(cns.InfraNIC)].EndpointPolicies...) - + for key := range ipamAddResult.interfaceInfo { + policies = append(policies, ipamAddResult.interfaceInfo[key].EndpointPolicies...) + } // moved to addIpamInvoker // sendEvent(plugin, fmt.Sprintf("Allocated IPAddress from ipam interface: %+v", ipamAddResult.PrettyString()))