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 9ad9b5e commit adcabcd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cni/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,8 @@ func (plugin *NetPlugin) Add(args *cniSkel.CmdArgs) error {
}

policies := cni.GetPoliciesFromNwCfg(nwCfg.AdditionalArgs)
for key := range ipamAddResult.interfaceInfo {
if key == string(cns.InfraNIC) {
policies = append(policies, ipamAddResult.interfaceInfo[key].EndpointPolicies...)
}
}
policies = append(policies, ipamAddResult.interfaceInfo[string(cns.InfraNIC)].EndpointPolicies...)

// moved to addIpamInvoker
// sendEvent(plugin, fmt.Sprintf("Allocated IPAddress from ipam interface: %+v", ipamAddResult.PrettyString()))

Expand Down

0 comments on commit adcabcd

Please sign in to comment.