Skip to content

Commit

Permalink
Merge pull request #1556 from aojea/dualPolicy
Browse files Browse the repository at this point in the history
fix network policies for dual stack
  • Loading branch information
danwinship committed Jul 30, 2020
2 parents f07de5b + 71e0429 commit 36c4740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go-controller/pkg/ovn/gress_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/config"
"github.com/ovn-org/ovn-kubernetes/go-controller/pkg/util"

"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
knet "k8s.io/api/networking/v1"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/klog"
Expand Down Expand Up @@ -177,7 +177,7 @@ func (gp *gressPolicy) constructMatchString(v4AddressSets, v6AddressSets []strin
matchStr = v6MatchStr
}
if len(v4AddressSets) > 0 && len(v6AddressSets) > 0 {
matchStr = v4MatchStr + "||" + v6MatchStr
matchStr = fmt.Sprintf("(%s || %s)", v4MatchStr, v6MatchStr)
}
return matchStr
}
Expand Down Expand Up @@ -405,7 +405,7 @@ func constructIPStringForACL(direction string, ipCIDRs []string) string {
matchStr = v6MatchStr
}
if len(v4CIDRs) > 0 && len(v6CIDRs) > 0 {
matchStr = v4MatchStr + "||" + v6MatchStr
matchStr = fmt.Sprintf("(%s || %s)", v4MatchStr, v6MatchStr)
}
return matchStr
}
Expand Down

0 comments on commit 36c4740

Please sign in to comment.