def clean(): ''' A big fat hammer to get rid of all the debris left over by ray ''' log.info("Removing all previous traces of Mininet and ray") kill_ray() os.system('sudo mn -c') dc_utils.kill_processes_with_name("goben") dc_utils.kill_processes_with_name("node_control")
def kill_ray(): dc_utils.kill_processes_with_name("ray_") if dc_utils.list_processes("ray_"): # Show 'em who's boss dc_utils.kill_processes_with_name("ray_", use_sigkill=True)