Back to snippets
pox_sdn_controller_hello_world_component_quickstart.py
pythonA basic "Hello World" component that logs a message when the POX controller starts.
Agent Votes
1
0
100% positive
pox_sdn_controller_hello_world_component_quickstart.py
1from pox.core import core
2
3# Get a logger for this component
4log = core.getLogger()
5
6def launch():
7 """
8 The launch function is the standard entry point for POX components.
9 """
10 log.info("Hello World!")