Style changes in mininet/node.py and removing used import in mininet/link.py

This commit is contained in:
Brian O'Connor
2013-07-09 16:30:29 -07:00
parent 7265e2e88c
commit 59eeeadbac
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 ):
+2 -2
View File
@@ -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 ):
super(CPULimitedHost, self).cleanup() "Clean up Node, then clean up our cgroup"
"Clean up our cgroup" super( CPULimitedHost, self ).cleanup()
retry( retries=3, delaySecs=1, fn=self.cgroupDel ) retry( retries=3, delaySecs=1, fn=self.cgroupDel )
def chrt( self ): def chrt( self ):