Versions Compared

Key

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

...

(warning)

You'll need to import the ConcurrentCircularBuffer into the PktInHistory package. It is available here. If your Floodlight version does not include this class, you can add the ConcurrentCircularBuffer.java file within the net.floodlightcontroller.util package of your controller.

Now we have to define the behavior for what to do when the module receives a PacketIn message. This is done in the receive() function.

...

Info

You can find a more in-depth REST API tutorial here if you are curious about the 'how' and 'why' behind some things you're required to do below.

...


We now have a complete module implementation, but no way to get information out of it! For this we'll need to do two things. Have our module export a service then tie it into the REST API Module.

...