public interface PacketService
| Modifier and Type | Method and Description |
|---|---|
default void |
addFilter(PacketInFilter filter)
Adds the specified filter to the list of packet filters.
|
void |
addProcessor(PacketProcessor processor,
int priority)
Adds the specified processor to the list of packet processors.
|
void |
cancelPackets(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId)
Cancels previous packet requests for packets matching the given
selector to be punted from the dataplane to the controller.
|
void |
cancelPackets(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId,
Optional<DeviceId> deviceId)
Cancels previous packet requests for packets matching the given
selector to be punted from the dataplane to the controller.
|
default void |
clearFilters()
Clear all packet filters in one shot.
|
void |
emit(OutboundPacket packet)
Emits the specified outbound packet onto the network.
|
default List<PacketInFilter> |
getFilters()
Get the list of packet filters present in ONOS.
|
List<PacketProcessorEntry> |
getProcessors()
Returns priority bindings of all registered packet processor entries.
|
List<PacketRequest> |
getRequests()
Returns list of all existing requests ordered by priority.
|
default void |
removeFilter(PacketInFilter filter)
Removes the specified filter from the filters list.
|
void |
removeProcessor(PacketProcessor processor)
Removes the specified processor from the processing pipeline.
|
void |
requestPackets(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId)
Requests that packets matching the given selector are punted from the
dataplane to the controller.
|
void |
requestPackets(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId,
Optional<DeviceId> deviceId)
Requests that packets matching the given selector are punted from the
dataplane to the controller.
|
void addProcessor(PacketProcessor processor, int priority)
processor - processor to be addedpriority - priority in the reverse natural orderIllegalArgumentException - if a processor with the
given priority already existsvoid removeProcessor(PacketProcessor processor)
processor - packet processordefault void addFilter(PacketInFilter filter)
filter - filter to be addeddefault void removeFilter(PacketInFilter filter)
filter - filter to be removedList<PacketProcessorEntry> getProcessors()
void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId)
selector - the traffic selector used to match packetspriority - the priority of the ruleappId - the application ID of the requestervoid requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId)
selector - the traffic selector used to match packetspriority - the priority of the ruleappId - the application ID of the requesterdeviceId - an optional deviceIdvoid cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId)
selector - the traffic selector used to match packetspriority - the priority of the ruleappId - the application ID of the requestervoid cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId)
selector - the traffic selector used to match packetspriority - the priority of the ruleappId - the application ID of the requesterdeviceId - an optional deviceIdList<PacketRequest> getRequests()
void emit(OutboundPacket packet)
packet - outbound packetdefault List<PacketInFilter> getFilters()
default void clearFilters()