Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions go-controller/pkg/node/bridgeconfig/bridgeconfig_testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ func CheckUDNSvcIsolationOVSFlows(flows []string, netConfig *BridgeUDNConfigurat
var protoPrefix string
if net2.IsIPv4CIDR(svcCIDR) {
mgmtMasqIP = netConfig.V4MasqIPs.ManagementPort.IP.String()
protoPrefix = "ip"
protoPrefix = protoPrefixV4
} else {
mgmtMasqIP = netConfig.V6MasqIPs.ManagementPort.IP.String()
protoPrefix = "ip6"
protoPrefix = protoPrefixV6
}

var nFlows int
Expand Down Expand Up @@ -78,11 +78,11 @@ func CheckAdvertisedUDNSvcIsolationOVSFlows(flows []string, netConfig *BridgeUDN
if net2.IsIPv4CIDR(svcCIDR) {
matchingIPFamilySubnet, err = util.MatchFirstIPNetFamily(false, udnAdvertisedSubnets)
Expect(err).ToNot(HaveOccurred())
protoPrefix = "ip"
protoPrefix = protoPrefixV4
} else {
matchingIPFamilySubnet, err = util.MatchFirstIPNetFamily(true, udnAdvertisedSubnets)
Expect(err).ToNot(HaveOccurred())
protoPrefix = "ip6"
protoPrefix = protoPrefixV6
}

var nFlows int
Expand All @@ -107,11 +107,11 @@ func CheckDefaultSvcIsolationOVSFlows(flows []string, defaultConfig *BridgeUDNCo
var masqSubnet string
var protoPrefix string
if net2.IsIPv4CIDR(svcCIDR) {
protoPrefix = "ip"
protoPrefix = protoPrefixV4
masqIP = config.Gateway.MasqueradeIPs.V4HostMasqueradeIP.String()
masqSubnet = config.Gateway.V4MasqueradeSubnet
} else {
protoPrefix = "ip6"
protoPrefix = protoPrefixV6
masqIP = config.Gateway.MasqueradeIPs.V6HostMasqueradeIP.String()
masqSubnet = config.Gateway.V6MasqueradeSubnet
}
Expand Down
Loading