def do_events(self, line): try: parser = argparse.ArgumentParser() subp = parser.add_subparsers(dest = 'command') subp1 = subp.add_parser('start') args = parser.parse_args(shlex.split(line)) if args.command == 'start': EventsManager.startTimers() except (SystemExit, Exception) as e: mininet.log.error('A problem occurred : %s\n' % e)
def wait_start_events(watcher_start_event=None): if watcher_start_event is not None: wait_file(watcher_start_event) EventsManager.startTimers() time.sleep(2)