Remove setup/isOldOVS which have been merged into OVSSwitch

This commit is contained in:
Bob Lantz
2014-09-22 12:27:49 -07:00
parent 13bdd914dc
commit 02bf34aa96
+1 -16
View File
@@ -27,26 +27,11 @@ from mininet.log import output, warn
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 ]