From 02bf34aa961921ac49faddf8f23ebd3f48300dd2 Mon Sep 17 00:00:00 2001
From: Bob Lantz <rlantz@cs.stanford.edu>
Date: Mon, 22 Sep 2014 12:27:49 -0700
Subject: [PATCH] Remove setup/isOldOVS which have been merged into OVSSwitch

---
 examples/mobility.py | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/examples/mobility.py b/examples/mobility.py
index 18abae25..0e3e5570 100755
--- a/examples/mobility.py
+++ b/examples/mobility.py
@@ -27,26 +27,11 @@
 
 from random import randint
 from re import findall
-from distutils.version import StrictVersion
+
 
 class MobilitySwitch( OVSSwitch ):
     "Switch that can reattach and rename interfaces"
 
-    @classmethod
-    def setup( cls ):
-        "Call our parent method and determine OVS version"
-        OVSSwitch.setup()
-        info = quietRun( 'ovs-vsctl --version' )
-        cls.OVSVersion =  findall( '\d+\.\d+', info )[ 0 ]
-        if cls.isOldOVS():
-            warn( 'WARNING: port selection may not work '
-                  ' with OVS ', cls.OVSVersion )
-
-    @classmethod
-    def isOldOVS( cls ):
-        return ( StrictVersion( cls.OVSVersion ) <
-             StrictVersion( '1.10' ) )
-
     def delIntf( self, intf ):
         "Remove (and detach) an interface"
         port = self.ports[ intf ]
-- 
GitLab