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 voidemitPacket(ByteBuffer data, Optional<TrafficTreatment> treatment)Emits the specified packet, with optional treatment to all edge ports.voidemitPacket(DeviceId deviceId, ByteBuffer data, Optional<TrafficTreatment> treatment)Emits the specified packet, with optional treatment to all edge ports.Iterable<ConnectPoint>getEdgePoints()Returns a collection of all edge point within the current topology.Iterable<ConnectPoint>getEdgePoints(DeviceId deviceId)Returns a collection of all edge point for the specified device.booleanisEdgePoint(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
Iterable<ConnectPoint> getEdgePoints()
Returns a collection of all edge point within the current topology.- Returns:
 - iterable collection of all edge points
 
 
- 
getEdgePoints
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(ByteBuffer data, 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, ByteBuffer data, 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
 
 - 
 
 -