Changes between Version 9 and Version 10 of Internal/OpenFlow/Controllers/FloodLight


Ignore:
Timestamp:
Jun 1, 2012, 11:55:18 PM (12 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/Controllers/FloodLight

    v9 v10  
    106106
    107107=== Startup ===
    108 The following steps describe the startup process of the Floodlight controller. The reference is the source code in Main.java. 
    109  1. the !FloodlightModuleLoader reads in the list of modules, and loads them, returning an IFloodlightModuleContext instance. [[BR]]
    110  The !FloodlightModuleLoader basically coordinates calls to the functions provided by the IFloodlightModule interface for each module in the config file (floodlightdefault.properties) and the modules that they depend on. Some key points are: [[BR]]
    111   * IFloodlightModule is the interface that lets you define Floodlight module behavior in a uniform way.
    112   * it finds all of the modules that it needs to load via a DFS beginning with the modules listed in the config file. The search is facilitated by IFloodlightModule functions.
    113   * moduleSet will ultimately contain the minimum number of modules that need to be loaded at startup.
     108The following steps describe the startup process of the Floodlight controller. The reference is the source code in Main.java.
     109[[BR]]
     1101. The `FloodlightModuleLoader` reads in the list of modules, and loads them, returning an `IFloodlightModuleContext` instance.
     111
     112 The `FloodlightModuleLoader` basically coordinates calls to the functions provided by the `IFloodlightModule` interface for each module in the config file (floodlightdefault.properties) and the modules that they depend on. Some key points are: [[BR]]
     113  * `IFloodlightModule` is the interface that lets you define Floodlight module behavior in a uniform way.
     114  * The function ''loadModulesFromList'' finds all of the modules that it needs to load via a DFS beginning with the modules listed in the config file. The search is facilitated by `IFloodlightModule` functions.
     115  * The structure ''moduleSet'' will ultimately contain the minimum number of modules that need to be loaded at startup.
    114116 
    115  2. the IFloodlightModuleContext instance fetches copies of the IRestApiService and IFloodlightProviderService modules. [[BR]]
    116  IFloodlightModuleContext provides a clean mechanism for retrieving references to the loaded modules/services, and their configuration parameters. FloodlightModuleContext implements this interface. [[BR]]
    117   * IRestApiService provides REST API functions.
    118   * IFloodlightProviderService provides the core controller functions and then some.
     1172. The `IFloodlightModuleContext` instance fetches copies of the `IRestApiService` and `IFloodlightProviderService` modules.
    119118
    120  3. Run the REST API and core controller [[BR]]
     119 `IFloodlightModuleContext` provides a clean mechanism for retrieving references to the loaded modules/services, and their configuration parameters. `FloodlightModuleContext` implements this interface. [[BR]]
     120  * `IRestApiService` provides REST API functions.
     121  * `IFloodlightProviderService` provides the core controller functions and then some.
     122
     1233. Run the REST API and core controller.
     124
    121125 At this point, Floodlight is up and running.
    122126
     127=== IFloodlightProviderService ===
     128This interface lies at the core of Floodlight's functions. The class `Controller` implements this interface.   
     129
     130
    123131= The Floodlight VM = #vm
    124 This is a VM image geared towards VirtualBox containing a running floodlight instance, mininet, and wireshark. [[BR]]
     132This is a VM image geared towards !VirtualBox containing a running floodlight instance, mininet, and wireshark. [[BR]]
    125133It can easily be run on qemu/kvm after conversion to `qcow2` with `qemu-img convert -O` and with the parameters used to run mininet.
    126134