blob: 4cc8d802130df960616c35c1f8b6cdcf51b6f066 [file] [log] [blame]
Yoonseon Handfd32b12016-10-13 12:05:24 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Yoonseon Handfd32b12016-10-13 12:05:24 -07003 *
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.
Yoonseon Hanc8089db2017-03-22 20:22:12 +090024 * This provider de-virtualizes and virtualize PacketContext.
Yoonseon Handfd32b12016-10-13 12:05:24 -070025 */
26public interface VirtualPacketProvider extends VirtualProvider {
Yoonseon Handfd32b12016-10-13 12:05:24 -070027 /**
28 * Emits the specified outbound packet onto the underlay physical network.
29 * This provider maps the requested packets for physical network.
30 *
31 * @param networkId the virtual network ID
32 * @param packet outbound packet in the context of virtual network
33 */
34 void emit(NetworkId networkId, OutboundPacket packet);
Yoonseon Handfd32b12016-10-13 12:05:24 -070035}