Skip to content

Commit 9ca7d88

Browse files
committed
removed an infra nic check
1 parent adcabcd commit 9ca7d88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cni/network/network.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,9 @@ func (plugin *NetPlugin) Add(args *cniSkel.CmdArgs) error {
590590
}
591591

592592
policies := cni.GetPoliciesFromNwCfg(nwCfg.AdditionalArgs)
593-
policies = append(policies, ipamAddResult.interfaceInfo[string(cns.InfraNIC)].EndpointPolicies...)
594-
593+
for key := range ipamAddResult.interfaceInfo {
594+
policies = append(policies, ipamAddResult.interfaceInfo[key].EndpointPolicies...)
595+
}
595596
// moved to addIpamInvoker
596597
// sendEvent(plugin, fmt.Sprintf("Allocated IPAddress from ipam interface: %+v", ipamAddResult.PrettyString()))
597598

0 commit comments

Comments
 (0)