Skip to content

Commit

Permalink
removed an infra nic check
Browse files Browse the repository at this point in the history
  • Loading branch information
rejain456 committed Jan 10, 2025
1 parent adcabcd commit 9ca7d88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cni/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down

0 comments on commit 9ca7d88

Please sign in to comment.