Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to change the host address and port a particular service listens on, you can use below Floodlight provides many parameters and tuning knobs for the included server sockets, such as the OpenFlow server, the REST API, and the Jython debug server. You can modify the following configuration parameters in your properties file.

Code Block
net.floodlightcontroller.restserver.RestApiServer.host
net.floodlightcontroller.restserver.RestApiServer.httpPort
net.floodlightcontroller.restserver.RestApiServer.httpsPort
net.floodlightcontroller.core.internal.FloodlightProviderOFSwitchManager.openFlowAddressesopenFlowPort
net.floodlightcontroller.core.internal.FloodlightProviderOFSwitchManager.openflowhostopenFlowAddresses
net.floodlightcontroller.core.internal.FloodlightProviderOFSwitchManager.openflowPortworkerThreads
net.floodlightcontroller.core.jythoninternal.JythonDebugInterfaceOFSwitchManager.hostbossThreads
net.floodlightcontroller.core.jythoninternal.JythonDebugInterfaceOFSwitchManager.port

...

connectionBacklog
net.floodlightcontroller.core.internal.OFSwitchManager.connectionTimeoutMs
net.floodlightcontroller.jython.JythonDebugInterface.host
net.floodlightcontroller.jython.JythonDebugInterface.port

Example Configurations

OpenFlow port where switches connect to Floodlight changed from 6653 to 6633:

Code Block
net.floodlightcontroller.core.internal.FloodlightProviderOFSwitchManager.openflowPort openFlowPort= 6633

All 3 servers listen on 192.168.1.1:

Code Block
net.floodlightcontroller.core.internal.FloodlightProvider.openflowhost = 192.168.1.1
net.floodlightcontroller.restserver.RestApiServer.host = 192.168.1.1 
net.floodlightcontroller.jython.JythonDebugInterface.host = 192.168.1.1 

All 3 servers listen on different hosts:

Code Block
net.floodlightcontroller.restserver.RestApiServer.host = 192.168.1.1
net.floodlightcontroller.core.internal.FloodlightProviderOFSwitchManager.openflowhost openFlowAddresses= 192.168.1.2
net.floodlightcontroller.jython.JythonDebugInterface.host = 192.168.1.3

Controller and REST API server listen on 192.168.1.1, Jython server listens on 192.168.1.2:

Code Block
net.floodlightcontroller.core.FloodlightProvider.openflowhost = 192.168.1.1
net.floodlightcontroller.restserver.RestApiServer.host = 192.168.1.1
net.floodlightcontroller.jython.JythonDebugInterface.host = 192.168.1.2