Skip to content

Commit adcabcd

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cni/network/network.go

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

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

0 commit comments

Comments
 (0)