dana-i2cat/opennaas — pull request #647 by isartcanyameres (2013-09-16 08:19:53+00:00)
Title: Feature/of switch driver floodlight

FloodlightProtocolSession with a client for the static flow pusher service in Floodlight 0.90.
Not yet functional.

FloodlightProtocolSession instantiates a Floodlight Client, similarly than OpenerProtocolSession.
The client is empty by now (not yet functional).

FloodlightProtocolSession requires a ProtocolSessionContext with the switchId, as well as the ip address of the floodlight instance.
SwitchId is stored in the context as a parameter named protocol.floodlight.switchid.
The switchId should be of the form XX:XX:XX:XX:XX:XX:XX:XX (i.e. 00:00:00:00:00:00:00:01),
and should match the identifier floodlight uses for a registered switch.
The IP address is stored in the URI.

FloodlightProtocolSession checks for these parameters to be in the context and fails during initialization if they are not present.

CLI command to create the context:
protocols:context floodlight noauth floodlight:// -p protocol.floodlight.switchid=