From 3dd8c2cda602a15836e9b713afccf0e62012d6a1 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 4 Feb 2015 10:30:26 -0800 Subject: [PATCH] A controller should delete its interfaces if necessary This was causing controlnet.py to not clean up its interfaces, since those interfaces were linked from the controller to the switch rather than vice-versa!! deleteIntfs already will only delete interfaces whose names match our name, which should usually prevent us from accidentally deleting a hardware interface from the root namespace! --- mininet/node.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mininet/node.py b/mininet/node.py index cd7ecd2..8f80a88 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1425,7 +1425,6 @@ class Controller( Node ): "Stop controller." self.cmd( 'kill %' + self.command ) self.cmd( 'wait %' + self.command ) - kwargs.update( deleteIntfs=False ) super( Controller, self ).stop( *args, **kwargs ) def IP( self, intf=None ):