public interface OpenFlowAgent
| Modifier and Type | Method and Description |
|---|---|
boolean |
addActivatedEqualSwitch(Dpid dpid,
OpenFlowSwitch sw)
Called when a switch is activated, with this controller's role as EQUAL.
|
boolean |
addActivatedMasterSwitch(Dpid dpid,
OpenFlowSwitch sw)
Called when a switch is activated, with this controller's role as MASTER.
|
boolean |
addConnectedSwitch(Dpid dpid,
OpenFlowSwitch sw)
Add a switch that has just connected to the system.
|
void |
processDownstreamMessage(Dpid dpid,
List<org.projectfloodlight.openflow.protocol.OFMessage> m)
Notify OpenFlow message listeners on all outgoing message event.
|
void |
processMessage(Dpid dpid,
org.projectfloodlight.openflow.protocol.OFMessage m)
Process a message coming from a switch.
|
void |
removeConnectedSwitch(Dpid dpid)
Clear all state in controller switch maps for a switch that has
disconnected from the local controller.
|
void |
returnRoleReply(Dpid dpid,
RoleState requested,
RoleState response)
Notifies the controller that role assertion has failed.
|
void |
transitionToEqualSwitch(Dpid dpid)
Called when this controller's role for a switch transitions to equal.
|
void |
transitionToMasterSwitch(Dpid dpid)
Called when this controller's role for a switch transitions from equal
to master.
|
boolean |
validActivation(Dpid dpid)
Checks if the activation for this switch is valid.
|
boolean addConnectedSwitch(Dpid dpid, OpenFlowSwitch sw)
dpid - the dpid to addsw - the actual switch object.boolean validActivation(Dpid dpid)
dpid - the dpid to checkboolean addActivatedMasterSwitch(Dpid dpid, OpenFlowSwitch sw)
dpid - the dpid to add.sw - the actual switchboolean addActivatedEqualSwitch(Dpid dpid, OpenFlowSwitch sw)
dpid - the dpid to add.sw - the actual switchvoid transitionToMasterSwitch(Dpid dpid)
dpid - the dpid to transistion.void transitionToEqualSwitch(Dpid dpid)
dpid - the dpid to transistion.void removeConnectedSwitch(Dpid dpid)
dpid - the dpid to remove.void processDownstreamMessage(Dpid dpid, List<org.projectfloodlight.openflow.protocol.OFMessage> m)
dpid - the dpid the message sent tom - the collection of messages to sent outvoid processMessage(Dpid dpid, org.projectfloodlight.openflow.protocol.OFMessage m)
dpid - the dpid the message came on.m - the message to process