MCPcopy Create free account
hub / github.com/mininet/mininet / terminate

Method terminate

mininet/node.py:275–281  ·  view source on GitHub ↗

Send kill signal to Node and clean up after it.

( self )

Source from the content-addressed store, hash-verified

273 os.write( self.stdin.fileno(), encode( data ) )
274
275 def terminate( self ):
276 "Send kill signal to Node and clean up after it."
277 self.unmountPrivateDirs()
278 if self.shell:
279 if self.shell.poll() is None:
280 os.killpg( self.shell.pid, signal.SIGHUP )
281 self.cleanup()
282
283 def stop( self, deleteIntfs=False ):
284 """Stop node.

Callers 5

stopMethod · 0.95
defaultDpidMethod · 0.45
batchShutdownMethod · 0.45
delNodeMethod · 0.45
stopMethod · 0.45

Calls 2

unmountPrivateDirsMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected