Package org.onosproject.net.edge
Interface EdgePortService
-
- All Superinterfaces:
ListenerService<EdgePortEvent,EdgePortListener>
public interface EdgePortService extends ListenerService<EdgePortEvent,EdgePortListener>
Service for interacting with an inventory of network edge ports. A port is considered an edge port if it is an active port and does not have an infrastructure link associated with it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
emitPacket(java.nio.ByteBuffer data, java.util.Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.void
emitPacket(DeviceId deviceId, java.nio.ByteBuffer data, java.util.Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.java.lang.Iterable<ConnectPoint>
getEdgePoints()
Returns a collection of all edge point within the current topology.java.lang.Iterable<ConnectPoint>
getEdgePoints(DeviceId deviceId)
Returns a collection of all edge point for the specified device.boolean
isEdgePoint(ConnectPoint point)
Indicates whether or not the specified connection point is an edge point.-
Methods inherited from interface org.onosproject.event.ListenerService
addListener, removeListener
-
-
-
-
Method Detail
-
isEdgePoint
boolean isEdgePoint(ConnectPoint point)
Indicates whether or not the specified connection point is an edge point.- Parameters:
point
- connection point- Returns:
- true if edge point
-
getEdgePoints
java.lang.Iterable<ConnectPoint> getEdgePoints()
Returns a collection of all edge point within the current topology.- Returns:
- iterable collection of all edge points
-
getEdgePoints
java.lang.Iterable<ConnectPoint> getEdgePoints(DeviceId deviceId)
Returns a collection of all edge point for the specified device.- Parameters:
deviceId
- device identifier- Returns:
- iterable collection of all edge points for the device
-
emitPacket
void emitPacket(java.nio.ByteBuffer data, java.util.Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.- Parameters:
data
- packet datatreatment
- optional traffic treatment to apply to the packet
-
emitPacket
void emitPacket(DeviceId deviceId, java.nio.ByteBuffer data, java.util.Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.- Parameters:
deviceId
- device where to send the packet outdata
- packet datatreatment
- optional traffic treatment to apply to the packet
-
-