Search in sources :

Example 1 with VirtualPacketProvider

use of org.onosproject.incubator.net.virtual.provider.VirtualPacketProvider in project onos by opennetworkinglab.

the class VirtualNetworkPacketManager method localEmit.

private void localEmit(NetworkId networkId, OutboundPacket packet) {
    Device device = deviceService.getDevice(packet.sendThrough());
    if (device == null) {
        return;
    }
    VirtualPacketProvider packetProvider = providerService.provider();
    if (packetProvider != null) {
        packetProvider.emit(networkId, packet);
    }
}
Also used : Device(org.onosproject.net.Device) VirtualPacketProvider(org.onosproject.incubator.net.virtual.provider.VirtualPacketProvider)

Aggregations

VirtualPacketProvider (org.onosproject.incubator.net.virtual.provider.VirtualPacketProvider)1 Device (org.onosproject.net.Device)1