diff --git a/examples/mobility.py b/examples/mobility.py index 18abae2567326d407950b439cebeae860461e7f8..0e3e557037b3aa747db374647310e8420bfadb2c 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 ]