Skip to content
Snippets Groups Projects
  1. May 16, 2016
    • Ryan Izard's avatar
      This is a huge commit. Lots of (good) stuff has been added and updated. First... · b9458ee4
      Ryan Izard authored
      This is a huge commit. Lots of (good) stuff has been added and updated. First and foremost, OpenFlow 1.5 is now supported (yay) via a major update to OpenFlowJ-Loxi. This update necessitated the update of the Static Flow Pusher module and MatchUtils, ActionUtils, and InstructionUtils to support the newly-added features. This prompted me to explore the SFP to see if there was anything that could be improved. First thing that came to mind was adding support to push OpenFlow groups in addition to flows, thus group support has been added to the SFP via JSON, which is the format that should have been used in the first place. Action lists will be updated in the near future to be JSON instead of one massive ',', '=', and '->' delimited string. Thus, the Static Flow Pusher has been renamed the StaticEntryPusher, since it now encompasses groups. While groups were being added to the SFP (ahem...SEP), a number of optimizations were made to the SEP code, greatly reducing its complexity (IMHO). The support for OpenFlow meters can now be added rather trivially in the future, if desired. Last thing to note about the SEP is the work-in-progress addition of a 'schema' API to allow northbound applications to get information about SEP syntax. This is not complete yet, but the skeleton code is in place. Next thing in this pull request is miscellaneous changes throughout the controller, primarily in (de)serializers and REST APIs to support OpenFlow 1.5. Next item of business is the removal of the DebugEventService. This is an artifact of days past and need not clutter the controller anymore. Same goes for the TestModule; now that we have better tutorials and documentation on the wiki, an example isn't necessary. And, last but not least, some old libraries that weren't being used have now been removed.
      b9458ee4
  2. May 02, 2016
  3. May 01, 2016
  4. Apr 29, 2016
  5. Apr 28, 2016
  6. Apr 26, 2016
  7. Apr 25, 2016
  8. Apr 21, 2016
  9. Apr 06, 2016
  10. Mar 30, 2016
  11. Mar 29, 2016
  12. Mar 28, 2016
    • Tulio Ribeiro's avatar
      Added comments at new functions. · ab3da0f4
      Tulio Ribeiro authored
      Fault tolerant based on events, now it is totally event driven.
      Logs with INFO scope.
      Romoved comment from OFChannelHandler to show logs again.
      
      floodlightdefault.properties2 renamed to floodlightBackupNode.properties
      
      :)
      ab3da0f4
    • Tulio Ribeiro's avatar
      Fault tolerance module based on events, now it is event driven. · 98dd2d8c
      Tulio Ribeiro authored
      Switch roles from floodlightdefault.properties.
      
      Fault tolerance with primary-backup or distributed, without reconfiguration.
      One time crashed the controller shall restart with all switches in slave mode.
      This can be achieved from floodlight.properties file.
      
      The second properties file, floodlighBackupNode.properties is for backup nodes, and swicthes shall be configures in slave mode.
      
      Regards
      98dd2d8c
    • Tulio Ribeiro's avatar
      Now it is totally event driven. · 0fe87738
      Tulio Ribeiro authored
      Hello guys, I have changed the logic of simple.FT (Fault Tolerant) module.
      
      The basic idea is, the FT module register on SyncManager to receive RPC events
      (connect and disconect nodes).
      
      In connect events, the controller send its switch list to storage and
      the other controllers can sync this info.
      In disconnect events, the controller is informed about which controller crashed and
      get switch list from storage and send a role request message to swicthes.
      
      Regards.
      0fe87738
  13. Mar 26, 2016
  14. Mar 25, 2016
    • Randall Sharo's avatar
      4e1d562a
    • Randall Sharo's avatar
    • Tulio Ribeiro's avatar
      Just this erros with ant tests... · 4155df3a
      Tulio Ribeiro authored
       [junit] Running net.floodlightcontroller.devicemanager.internal.DeviceManagerImplTest
       [junit] Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0,503 sec
       [junit] TEST net.floodlightcontroller.devicemanager.internal.DeviceManagerImplTest FAILED
      4155df3a
    • Tulio Ribeiro's avatar
      There something strange, JUnit tests from Eclipse it is ok! · b7d5355c
      Tulio Ribeiro authored
      But from ant file there is some errors.
      
      If I run this test lonely in Eclipse with JUnit, it is ok.
      [junit] Running org.sdnplatform.sync.internal.store.RemoteStoreTest
      [junit] Tests run: 8, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 13,244 sec
      
      [junit] Running org.sdnplatform.sync.internal.SyncManagerTest
      [junit] Tests run: 13, Failures: 8, Errors: 0, Skipped: 3, Time elapsed: 15,847 sec
      
      TESTS RESULT:
      
      worm@TAR:~/ForkFloodlight/floodlight$ ant tests
      Buildfile: /home/worm/ForkFloodlight/floodlight/build.xml
      
      init:
      
      compile:
          [javac] Compiling 1 source file to /home/worm/ForkFloodlight/floodlight/target/bin
          [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
          [javac] 1 warning
      
      compile-test:
      
      test:
          [junit] Running net.floodlightcontroller.accesscontrollist.ACLRuleResourceTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,517 sec
          [junit] Running net.floodlightcontroller.accesscontrollist.ACLRuleTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,003 sec
          [junit] Running net.floodlightcontroller.accesscontrollist.ACLTest
          [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,29 sec
          [junit] Running net.floodlightcontroller.accesscontrollist.APManagerTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,004 sec
          [junit] Running net.floodlightcontroller.accesscontrollist.IPAddressUtilTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,005 sec
          [junit] Running net.floodlightcontroller.core.internal.ControllerTest
          [junit] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,382 sec
          [junit] Running net.floodlightcontroller.core.internal.OFChannelHandlerVer10Test
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,148 sec
          [junit] Running net.floodlightcontroller.core.internal.OFChannelHandlerVer13Test
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,055 sec
          [junit] Running net.floodlightcontroller.core.internal.OFConnectionTest
          [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,078 sec
          [junit] Running net.floodlightcontroller.core.internal.OFSwitchBaseTest
          [junit] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,055 sec
          [junit] Running net.floodlightcontroller.core.internal.OFSwitchHandshakeHandlerVer10Test
          [junit] Tests run: 27, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,276 sec
          [junit] Running net.floodlightcontroller.core.internal.OFSwitchHandshakeHandlerVer13Test
          [junit] Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,214 sec
          [junit] Running net.floodlightcontroller.core.internal.OFSwitchManagerTest
          [junit] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,165 sec
          [junit] Running net.floodlightcontroller.core.internal.OFSwitchTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,017 sec
          [junit] Running net.floodlightcontroller.core.internal.RoleManagerTest
          [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,037 sec
          [junit] Running net.floodlightcontroller.core.util.AppCookieTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,001 sec
          [junit] Running net.floodlightcontroller.core.util.MessageDispatcherTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,158 sec
          [junit] Running net.floodlightcontroller.core.util.SingletonTaskTest
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,589 sec
          [junit] Running net.floodlightcontroller.debugcounter.DebugCounterImplTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,001 sec
          [junit] Running net.floodlightcontroller.debugcounter.DebugCounterServiceTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,009 sec
          [junit] Running net.floodlightcontroller.debugcounter.OFConnectionCountersTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,078 sec
          [junit] Running net.floodlightcontroller.debugevent.DebugEventTest
          [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,014 sec
          [junit] Running net.floodlightcontroller.debugevent.EventTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,004 sec
          [junit] Running net.floodlightcontroller.devicemanager.internal.DeviceManagerImplTest
          [junit] Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,477 sec
          [junit] Running net.floodlightcontroller.devicemanager.internal.DeviceUniqueIndexTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.firewall.FirewallTest
          [junit] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,073 sec
          [junit] Running net.floodlightcontroller.forwarding.ForwardingTest
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,075 sec
          [junit] Running net.floodlightcontroller.hub.HubTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,006 sec
          [junit] Running net.floodlightcontroller.learningswitch.LearningSwitchTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,016 sec
          [junit] Running net.floodlightcontroller.linkdiscovery.internal.LinkDiscoveryManagerTest
          [junit] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,394 sec
          [junit] Running net.floodlightcontroller.loadbalancer.LoadBalancerTest
          [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,044 sec
          [junit] Running net.floodlightcontroller.notification.NotificationTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,001 sec
          [junit] Running net.floodlightcontroller.packet.BSNTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.packet.DHCPTest
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,005 sec
          [junit] Running net.floodlightcontroller.packet.EthernetTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,001 sec
          [junit] Running net.floodlightcontroller.packet.ICMPTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.packet.IPv4Test
          [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,004 sec
          [junit] Running net.floodlightcontroller.packet.IPv6Test
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,003 sec
          [junit] Running net.floodlightcontroller.packet.LLDPOrganizationalTLVTest
          [junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,012 sec
          [junit] Running net.floodlightcontroller.packet.LLDPTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.packet.PacketTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,005 sec
          [junit] Running net.floodlightcontroller.packet.SPUDTest
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.packet.TCPTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.packet.UDPTest
          [junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,005 sec
          [junit] Running net.floodlightcontroller.routing.RouteTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,005 sec
          [junit] Running net.floodlightcontroller.staticflowentry.StaticFlowTests
          [junit] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0,008 sec
          [junit] TEST net.floodlightcontroller.staticflowentry.StaticFlowTests FAILED
          [junit] Running net.floodlightcontroller.storage.memory.tests.MemoryStorageTest
          [junit] Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,053 sec
          [junit] Running net.floodlightcontroller.topology.TopologyInstanceTest
          [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,029 sec
          [junit] Running net.floodlightcontroller.topology.TopologyManagerTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running net.floodlightcontroller.util.EnumBitmapsTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,003 sec
          [junit] Running net.floodlightcontroller.util.OFMessageDamperTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,124 sec
          [junit] Running net.floodlightcontroller.util.TimedCacheTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,069 sec
          [junit] Running net.floodlightcontroller.virtualnetwork.VirtualNetworkFilterTest
          [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,072 sec
          [junit] Running org.sdnplatform.sync.VersionedTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,002 sec
          [junit] Running org.sdnplatform.sync.client.ClientTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,951 sec
          [junit] Running org.sdnplatform.sync.internal.BootstrapTest
          [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 50,547 sec
          [junit] Running org.sdnplatform.sync.internal.SyncManagerTest
          [junit] Tests run: 13, Failures: 8, Errors: 0, Skipped: 3, Time elapsed: 15,847 sec
          [junit] TEST org.sdnplatform.sync.internal.SyncManagerTest FAILED
          [junit] Running org.sdnplatform.sync.internal.store.InMemoryStorageEngineTest
          [junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,514 sec
          [junit] Running org.sdnplatform.sync.internal.store.JacksonStoreTest
          [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,057 sec
          [junit] Running org.sdnplatform.sync.internal.store.JavaDBStorageEngineTest
          [junit] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1,578 sec
          [junit] Running org.sdnplatform.sync.internal.store.RemoteStoreTest
          [junit] Tests run: 8, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 13,244 sec
          [junit] TEST org.sdnplatform.sync.internal.store.RemoteStoreTest FAILED
          [junit] Running org.sdnplatform.sync.internal.version.ClockEntryTest
          [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,001 sec
          [junit] Running org.sdnplatform.sync.internal.version.VectorClockInconsistencyResolverTest
          [junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,003 sec
          [junit] Running org.sdnplatform.sync.internal.version.VectorClockTest
          [junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0,013 sec
          [junit] Tests FAILED
      
      BUILD FAILED
      /home/worm/ForkFloodlight/floodlight/build.xml:223: Unit test(s) failed.  See reports!
      b7d5355c
    • Tulio Ribeiro's avatar
      SyncManagerTest pass on individual tests. · 6ce7b38c
      Tulio Ribeiro authored
      ant tests result in some failures.
      6ce7b38c
    • Tulio Ribeiro's avatar
      Tests: ClientTest and BootstrapTest is done! · 1a2c552e
      Tulio Ribeiro authored
      SyncManager results:
      13:08:12.696 ERROR [i.n.u.ResourceLeakDetector:main] LEAK: You are creating too many HashedWheelTimer instances.  HashedWheelTimer is a shared resource that must be reused across the JVM,so that only a few instances are created.
      1a2c552e
  15. Mar 24, 2016
    • Tulio Ribeiro's avatar
      Fixed CryptoUtil.java at getSharedSecret function. · 3c2a89e3
      Tulio Ribeiro authored
      The value of CHALLENGE_RESPONSE_SECRET needs to be the value of "-alias" option from keytool, as follow:
      
      keytool -genkey -alias AliasChallengeResponse -keystore key.jceks -keypass "PassWord" -storepass "PassWord" -storetype JCEKS
      
      Main changes:
      
      CHALLENGE_RESPONSE_SECRET = "AliasChallengeResponse"; -> hard coded.
      3c2a89e3
    • Tulio Ribeiro's avatar
      The key.jceks needs to be created like this: · 9a56cd6c
      Tulio Ribeiro authored
      keytool -genkey -alias AliasChallengeResponse -keystore key2.jceks -keypass "PassWord" -storepass "PassWord" -storetype JCEKS
      
      Value of CHALLENGE_RESPONSE_SECRET=AliasChallengeResponse
      
      Value of CHALLENGE_RESPONSE_SECRET at CryptoUtil.java is hard coded.
      9a56cd6c
    • Tulio Ribeiro's avatar
      Solved CryptoUtil.java at getSharedSecret function. · 627e47f2
      Tulio Ribeiro authored
      The key.jceks needs to be created like this:
      
      Value of CHALLENGE_RESPONSE_SECRET=AliasChallengeResponse
      
      Value of CHALLENGE_RESPONSE_SECRET at CryptoUtil.java is hard coded.
      627e47f2
Loading