We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad9b5e commit adcabcdCopy full SHA for adcabcd
cni/network/network.go
@@ -590,11 +590,8 @@ func (plugin *NetPlugin) Add(args *cniSkel.CmdArgs) error {
590
}
591
592
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
+ policies = append(policies, ipamAddResult.interfaceInfo[string(cns.InfraNIC)].EndpointPolicies...)
+
598
// moved to addIpamInvoker
599
// sendEvent(plugin, fmt.Sprintf("Allocated IPAddress from ipam interface: %+v", ipamAddResult.PrettyString()))
600
0 commit comments