@@ -65,7 +65,6 @@ const (
6565 DIFFERENT_NODE NodeType = iota
6666
6767 // TODO get these defined as constandts in networkutils
68- OpenshiftSDNPluginName = "OpenShiftSDN"
6968 OVNKubernetesPluginName = "OVNKubernetes"
7069
7170 // IP Address Families
@@ -235,24 +234,6 @@ func checkConnectivityToHost(f *e2e.Framework, nodeName string, podName string,
235234
236235var cachedNetworkPluginName * string
237236
238- func openshiftSDNMode () string {
239- if cachedNetworkPluginName == nil {
240- // We don't use exutil.NewCLI() here because it can't be called from BeforeEach()
241- out , err := exec .Command (
242- "oc" , "--kubeconfig=" + exutil .KubeConfigPath (),
243- "get" , "clusternetwork" , "default" ,
244- "--template={{.pluginName}}" ,
245- ).CombinedOutput ()
246- pluginName := string (out )
247- if err != nil {
248- e2e .Logf ("Could not check network plugin name: %v. Assuming the OpenshiftSDN plugin is not being used" , err )
249- pluginName = ""
250- }
251- cachedNetworkPluginName = & pluginName
252- }
253- return * cachedNetworkPluginName
254- }
255-
256237func platformType (configClient configv1client.Interface ) (configv1.PlatformType , error ) {
257238 infrastructure , err := configClient .ConfigV1 ().Infrastructures ().Get (context .Background (), "cluster" , metav1.GetOptions {})
258239 if err != nil {
@@ -406,20 +387,6 @@ func findAppropriateNodes(f *e2e.Framework, nodeType NodeType) (*corev1.Node, *c
406387 return & candidates [0 ], & candidates [0 ], nil
407388}
408389
409- func InOpenShiftSDNContext (body func ()) {
410- Context ("when using openshift-sdn" ,
411- func () {
412- BeforeEach (func () {
413- if networkPluginName () != OpenshiftSDNPluginName {
414- e2eskipper .Skipf ("Not using openshift-sdn" )
415- }
416- })
417-
418- body ()
419- },
420- )
421- }
422-
423390func InBareMetalIPv4ClusterContext (oc * exutil.CLI , body func ()) {
424391 Context ("when running openshift ipv4 cluster on bare metal [apigroup:config.openshift.io]" ,
425392 func () {
0 commit comments