public interface MessageSink
OpenflowController
and
the layer above it. This is where the controller will notify of
the comings and goings of datapath connections, and to where
it will post incoming OpenFlow messages.Modifier and Type | Method and Description |
---|---|
void |
dataPathAdded(DataPathId dpid,
ProtocolVersion negotiated,
IpAddress ip)
Invoked by the controller when a new datapath has completed the
extended handshake sequence and is ready to talk OpenFlow.
|
void |
dataPathReady(DataPathId dpid,
ProtocolVersion negotiated,
IpAddress ip)
Invoked by the controller when a new datapath has completed the
post-handshake task and is ready for some real work.
|
void |
dataPathRemoved(DataPathId dpid,
ProtocolVersion negotiated,
IpAddress ip,
boolean logMsg)
Invoked by the controller when a datapath connection is dropped.
|
void |
dataPathRevoked(DataPathId dpid,
ProtocolVersion negotiated,
IpAddress ip)
Invoked by the controller when a datapath connection is refused
because a datapath with the given ID is already connected.
|
void |
msgRx(OpenflowMessage msg,
DataPathId dpid,
int auxId,
ProtocolVersion negotiated)
OpenFlow message received from the specified datapath on the given
auxiliary channel.
|
void dataPathAdded(DataPathId dpid, ProtocolVersion negotiated, IpAddress ip)
dpid
- the datapath idnegotiated
- the negotiated protocol versionip
- the IP address of the switchvoid dataPathReady(DataPathId dpid, ProtocolVersion negotiated, IpAddress ip)
dpid
- the datapath idnegotiated
- the negotiated protocol versionip
- the IP address of the switchvoid dataPathRemoved(DataPathId dpid, ProtocolVersion negotiated, IpAddress ip, boolean logMsg)
dpid
- the datapath idnegotiated
- the negotiated protocol versionip
- the IP address of the switchlogMsg
- True if we should log that the datapath is being removed.void dataPathRevoked(DataPathId dpid, ProtocolVersion negotiated, IpAddress ip)
dpid
- the datapath id (duplicated)negotiated
- the negotiated versionip
- the IP address of the switchvoid msgRx(OpenflowMessage msg, DataPathId dpid, int auxId, ProtocolVersion negotiated)
msg
- the messagedpid
- the datapath IDauxId
- the auxiliary channel IDnegotiated
- the negotiated protocol versionCopyright © 2015. All Rights Reserved.