Style changes in mininet/node.py and removing used import in mininet/link.py
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ Link: basic link class for creating veth pairs
|
|||||||
|
|
||||||
from mininet.log import info, error, debug
|
from mininet.log import info, error, debug
|
||||||
from mininet.util import makeIntfPair, quietRun
|
from mininet.util import makeIntfPair, quietRun
|
||||||
from time import sleep
|
#from time import sleep
|
||||||
import re
|
import re
|
||||||
|
|
||||||
class Intf( object ):
|
class Intf( object ):
|
||||||
|
|||||||
+1
-1
@@ -619,8 +619,8 @@ class CPULimitedHost( Host ):
|
|||||||
return Host.popen( self, *args, mncmd=mncmd, **kwargs )
|
return Host.popen( self, *args, mncmd=mncmd, **kwargs )
|
||||||
|
|
||||||
def cleanup( self ):
|
def cleanup( self ):
|
||||||
|
"Clean up Node, then clean up our cgroup"
|
||||||
super( CPULimitedHost, self ).cleanup()
|
super( CPULimitedHost, self ).cleanup()
|
||||||
"Clean up our cgroup"
|
|
||||||
retry( retries=3, delaySecs=1, fn=self.cgroupDel )
|
retry( retries=3, delaySecs=1, fn=self.cgroupDel )
|
||||||
|
|
||||||
def chrt( self ):
|
def chrt( self ):
|
||||||
|
|||||||
Reference in New Issue
Block a user