blob: 605f4e6d2c2c95a431ed559c88890394a6281a5b [file] [log] [blame]
Yoonseon Handfd32b12016-10-13 12:05:24 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.incubator.net.virtual.provider;
17
18import org.onosproject.incubator.net.virtual.NetworkId;
19import org.onosproject.net.packet.OutboundPacket;
20
21/**
22 * Abstraction of a virtual packet provider capable of emitting packets
23 * from virtual network core services to the underlay network.
24 * This provider de-virtualzes OutboundPacket, and virtualizes PacketContext.
25 */
26public interface VirtualPacketProvider extends VirtualProvider {
27
28 /**
29 * Emits the specified outbound packet onto the underlay physical network.
30 * This provider maps the requested packets for physical network.
31 *
32 * @param networkId the virtual network ID
33 * @param packet outbound packet in the context of virtual network
34 */
35 void emit(NetworkId networkId, OutboundPacket packet);
36
37}