blob: 11c2b0040c848bf98dd6e206e8291c128ffc8b52 [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
yoonseonfb4a1db2017-01-31 11:38:30 -080037 /**
38 * Starts to deliver packets to virtual packet managers.
39 */
40 void startPacketHandling();
41
Yoonseon Handfd32b12016-10-13 12:05:24 -070042}