Skip to content

Commit 3489f9c

Browse files
committed
added infra nic change
1 parent d951865 commit 3489f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (k *K8sSWIFTv2Middleware) IPConfigsRequestHandlerWrapper(defaultHandler, fa
6262
for i := range ipConfigsResp.PodIPInfo {
6363
ipInfo := &ipConfigsResp.PodIPInfo[i]
6464
// there will be no pod connectivity to and from those pods
65-
if defaultDenyACLbool {
65+
if defaultDenyACLbool && ipInfo.NICType == cns.InfraNIC {
6666
err = addDefaultDenyACL(ipInfo)
6767
if err != nil {
6868
logger.Errorf("failed to add default deny acl's for pod %v with err %v", podInfo.Name(), err)

0 commit comments

Comments
 (0)