From 59eeeadbacfa24fc546c25d9c48077a6421f7f78 Mon Sep 17 00:00:00 2001 From: Brian O'Connor Date: Tue, 9 Jul 2013 16:30:29 -0700 Subject: [PATCH] Style changes in mininet/node.py and removing used import in mininet/link.py --- mininet/link.py | 2 +- mininet/node.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mininet/link.py b/mininet/link.py index 56bf3e6..f7fea3d 100644 --- a/mininet/link.py +++ b/mininet/link.py @@ -26,7 +26,7 @@ Link: basic link class for creating veth pairs from mininet.log import info, error, debug from mininet.util import makeIntfPair, quietRun -from time import sleep +#from time import sleep import re class Intf( object ): diff --git a/mininet/node.py b/mininet/node.py index afc09b4..639bae2 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -619,8 +619,8 @@ class CPULimitedHost( Host ): return Host.popen( self, *args, mncmd=mncmd, **kwargs ) def cleanup( self ): - super(CPULimitedHost, self).cleanup() - "Clean up our cgroup" + "Clean up Node, then clean up our cgroup" + super( CPULimitedHost, self ).cleanup() retry( retries=3, delaySecs=1, fn=self.cgroupDel ) def chrt( self ):