blob: bf4a4855db1f1b0541a8e8e64e208950447e63b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package org.onosproject.incubator.net.virtual;
import org.onosproject.incubator.net.tunnel.TunnelId;
import org.onosproject.net.ConnectPoint;
import org.onosproject.net.provider.Provider;
/**
* Entity capable of providing traffic isolation constructs for use in
* implementation of virtual devices and virtual links.
*/
public interface VirtualNetworkProvider extends Provider {
/**
* Creates a network tunnel for all traffic from the specified source
* connection point to the indicated destination connection point.
*
* @param networkId virtual network identifier
* @param src source connection point
* @param dst destination connection point
* @return new tunnel's id
*/
TunnelId createTunnel(NetworkId networkId, ConnectPoint src, ConnectPoint dst);
/**
* Destroys the specified network tunnel.
*
* @param networkId virtual network identifier
* @param tunnelId tunnel identifier
*/
void destroyTunnel(NetworkId networkId, TunnelId tunnelId);
}
|