Reorder controller startup
This commit is contained in:
parent
7c3bcceb29
commit
0540b43f7f
2 changed files with 182 additions and 182 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue