Description
...
Code Block | ||||
---|---|---|---|---|
| ||||
# The default configuration for openstack floodlight.modules = net.floodlightcontroller.storage.memory.MemoryStorageSource,\ net.floodlightcontroller.staticflowentry.StaticEntryPusher,\ net.floodlightcontroller.forwarding.Forwarding,\ net.floodlightcontroller.jython.JythonDebugInterface,\ net.floodlightcontroller.perfmon.PktInProcessingTime,\ net.floodlightcontroller.ui.web.StaticWebRoutable,\ net.floodlightcontroller.virtualnetwork.VirtualNetworkFilter net.floodlightcontroller.restserver.RestApiServer.port = 8080 net.floodlightcontroller.core.FloodlightProvider.openflowport = 6653 net.floodlightcontroller.jython.JythonDebugInterface.port = 6655 |
For more information on the module loading system see the documentation here. |
If you are using the Floodlight VM the configuration file is already on the machine. Simply execute these commands to enable it.
...
Configuration Options
None.
REST API
URI | Method | URI Arguments | Data | Data Fields | Description |
---|---|---|---|---|---|
/networkService/v1.1/tenants/{tenant}/networks/{network} | PUT/POST/DELETE | Tenant: Currently ignored | {"network": { "gateway": "<IP>", "name": "<Name>" }}\ | IP: Gateway IP in "1.1.1.1" format, can be null | Creates a new virtual network. Name and ID are required, gateway is optional. |
/networkService/v1.1/tenants/{tenant}/networks/{network}/ports/{port}/attachment | PUT/DELETE | Tenant: Currently ignored | {"attachment": {"id": "<Network ID>", "mac": "<MAC>"}} | Network ID: Network ID as a string, the one you just created | Attaches a host to a virtual network. |
/networkService/v1.1/tenants/{tenant}/networks | GET | Tenant: Currently ignored | None | None | Shows all networks and their gateway, ID, and hosts mac in json format |
Examples using curl
Creating a virtual network named "VirtualNetwork1", the ID is "NetworkId1", the gateway is "10.0.0.7", and the tenant is "default" (which is currently ignored).
...