@@ -564,7 +564,7 @@ func (plugin *NetPlugin) Add(args *cniSkel.CmdArgs) error {
564564 if len (ipamAddResult .interfaceInfo ) > 1 && ! plugin .isDualNicFeatureSupported (args .Netns ) {
565565 errMsg := fmt .Sprintf ("received multiple NC results %+v from CNS while dualnic feature is not supported" , ipamAddResult .interfaceInfo )
566566 logger .Error ("received multiple NC results from CNS while dualnic feature is not supported" ,
567- zap .Any ("results " , ipamAddResult .interfaceInfo ))
567+ zap .Any ("Processing interfaceInfo " , ipamAddResult .interfaceInfo ))
568568 return plugin .Errorf (errMsg )
569569 }
570570 } else {
@@ -589,8 +589,12 @@ func (plugin *NetPlugin) Add(args *cniSkel.CmdArgs) error {
589589 // sendEvent(plugin, fmt.Sprintf("Allocated IPAddress from ipam DefaultInterface: %+v, SecondaryInterfaces: %+v", ipamAddResult.interfaceInfo[ifIndex], ipamAddResult.interfaceInfo))
590590 }
591591
592- logger .Info ("The length of ipamAddResult defaultDenyACL's is" , zap .Any ("defaultDenyACLLength" , ipamAddResult .defaultDenyACL ))
593- nwCfg .AdditionalArgs = append (nwCfg .AdditionalArgs , ipamAddResult .defaultDenyACL ... )
592+ for key := range ipamAddResult .interfaceInfo {
593+ if key == string (cns .InfraNIC ) {
594+ nwCfg .AdditionalArgs = append (nwCfg .AdditionalArgs , ipamAddResult .interfaceInfo [key ].DefaultDenyACL ... )
595+ logger .Info ("nwCfg.AdditionalArgs2:" , zap .Any ("ifInfo" , nwCfg .AdditionalArgs ))
596+ }
597+ }
594598 policies := cni .GetPoliciesFromNwCfg (nwCfg .AdditionalArgs )
595599 // moved to addIpamInvoker
596600 // sendEvent(plugin, fmt.Sprintf("Allocated IPAddress from ipam interface: %+v", ipamAddResult.PrettyString()))
0 commit comments