Add a method to TestContext to check if is IPv6

This commit is contained in:
Antonio Ojea
2019-08-27 15:41:10 +02:00
parent 930a1321da
commit 45d6f08868
3 changed files with 22 additions and 22 deletions

View File

@@ -430,11 +430,6 @@ func getDefaultClusterIPFamily(c clientset.Interface) string {
return "ipv4"
}
// ClusterIsIPv6 returns true if the cluster is IPv6
func ClusterIsIPv6() bool {
return TestContext.IPFamily == "ipv6"
}
// ProviderIs returns true if the provider is included is the providers. Otherwise false.
func ProviderIs(providers ...string) bool {
for _, provider := range providers {