From c9b844a7218468a5a8872262415d145346ff9381 Mon Sep 17 00:00:00 2001 From: cody burkard <cody@onlab.us> Date: Mon, 18 Aug 2014 23:51:29 -0700 Subject: [PATCH] added controller.stop() back in --- mininet/node.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mininet/node.py b/mininet/node.py index a5ad2bd7..997f4f80 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1269,6 +1269,11 @@ def start( self ): ' 1>' + cout + ' 2>' + cout + '&' ) self.execed = False + def stop( self ): + "Stop controller." + self.cmd( 'kill %' + self.command ) + self.terminate() + def IP( self, intf=None ): "Return IP address of the Controller" if self.intfs: -- GitLab