Package org.onosproject.net.neighbour
Interface NeighbourMessageActions
-
public interface NeighbourMessageActions
Performs actions on a neighbour message contexts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
drop(NeighbourMessageContext context)
Drops the incoming message.void
flood(NeighbourMessageContext context)
Floods the incoming message to all edge ports except the in port.void
forward(NeighbourMessageContext context, ConnectPoint outPort)
Forwards the incoming message to the given connect point.void
forward(NeighbourMessageContext context, Interface outIntf)
Forwards the incoming message to a given interface.void
reply(NeighbourMessageContext context, MacAddress targetMac)
Replies to an incoming request with the given MAC address.
-
-
-
Method Detail
-
reply
void reply(NeighbourMessageContext context, MacAddress targetMac)
Replies to an incoming request with the given MAC address.- Parameters:
context
- incoming message contexttargetMac
- target MAC address.
-
forward
void forward(NeighbourMessageContext context, ConnectPoint outPort)
Forwards the incoming message to the given connect point.- Parameters:
context
- incoming message contextoutPort
- port to send the message out
-
forward
void forward(NeighbourMessageContext context, Interface outIntf)
Forwards the incoming message to a given interface. The message will be modified to fit the parameters of the outgoing interface.- Parameters:
context
- incoming message contextoutIntf
- interface to send the message out
-
flood
void flood(NeighbourMessageContext context)
Floods the incoming message to all edge ports except the in port.- Parameters:
context
- incoming message context
-
drop
void drop(NeighbourMessageContext context)
Drops the incoming message.- Parameters:
context
- incoming message context
-
-