Search in sources :

Example 6 with DefaultPacketRequest

use of org.onosproject.net.packet.DefaultPacketRequest in project onos by opennetworkinglab.

the class VirtualNetworkPacketManager method cancelPackets.

@Override
public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId) {
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, deviceId);
    store.cancelPackets(networkId(), request);
}
Also used : DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 7 with DefaultPacketRequest

use of org.onosproject.net.packet.DefaultPacketRequest in project onos by opennetworkinglab.

the class VirtualNetworkPacketManager method requestPackets.

@Override
public void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId) {
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, deviceId);
    store.requestPackets(networkId(), request);
}
Also used : DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 8 with DefaultPacketRequest

use of org.onosproject.net.packet.DefaultPacketRequest in project onos by opennetworkinglab.

the class PacketManager method requestPackets.

@Override
public void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
    checkPermission(PACKET_READ);
    checkNotNull(selector, ERROR_NULL_SELECTOR);
    checkNotNull(appId, ERROR_NULL_APP_ID);
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, Optional.empty());
    store.requestPackets(request);
}
Also used : PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 9 with DefaultPacketRequest

use of org.onosproject.net.packet.DefaultPacketRequest in project onos by opennetworkinglab.

the class PacketManager method requestPackets.

@Override
public void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId) {
    checkPermission(PACKET_READ);
    checkNotNull(selector, ERROR_NULL_SELECTOR);
    checkNotNull(appId, ERROR_NULL_APP_ID);
    checkNotNull(deviceId, ERROR_NULL_DEVICE_ID);
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, deviceId);
    store.requestPackets(request);
}
Also used : PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Aggregations

DefaultPacketRequest (org.onosproject.net.packet.DefaultPacketRequest)9 PacketRequest (org.onosproject.net.packet.PacketRequest)8 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 NodeId (org.onosproject.cluster.NodeId)1 ApplicationId (org.onosproject.core.ApplicationId)1 CoreService (org.onosproject.core.CoreService)1 DeviceId (org.onosproject.net.DeviceId)1 TrafficSelector (org.onosproject.net.flow.TrafficSelector)1 PacketPriority (org.onosproject.net.packet.PacketPriority)1