Search in sources :

Example 1 with PacketProvider

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

the class PacketManager method localEmit.

private void localEmit(OutboundPacket packet) {
    Device device = deviceService.getDevice(packet.sendThrough());
    if (device == null) {
        return;
    }
    PacketProvider packetProvider = getProvider(device.providerId());
    if (packetProvider != null) {
        packetProvider.emit(packet);
    }
}
Also used : PacketProvider(org.onosproject.net.packet.PacketProvider) Device(org.onosproject.net.Device)

Aggregations

Device (org.onosproject.net.Device)1 PacketProvider (org.onosproject.net.packet.PacketProvider)1