Reorder controller startup

This commit is contained in:
Nico Schottelius 2019-03-26 21:56:32 +01:00
commit 0540b43f7f
2 changed files with 182 additions and 182 deletions

View file

@ -491,7 +491,10 @@ if __name__ == "__main__":
import sys
import os
sw_name = "s1"
controller = L2Controller(sw_name)
controller.commandline()
if controller.args.debug:
log.setLevel(logging.DEBUG)
elif controller.args.verbose:
@ -502,9 +505,6 @@ if __name__ == "__main__":
log.info("Booting...")
log.debug("Debug enabled.")
sw_name = "s1"
controller = L2Controller(sw_name)
controller.config()
controller.run_cpu_port_loop()