blob: 044533d8e05ecae385d74526ede6c1cc546adf4d [file] [log] [blame]
wei wei89ddc322015-03-22 16:29:04 -05001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
wei wei89ddc322015-03-22 16:29:04 -05003 *
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 */
Thomas Vachuskabf916ea2015-05-20 18:24:34 -070016package org.onosproject.incubator.net.tunnel;
wei wei89ddc322015-03-22 16:29:04 -050017
Brian O'Connor2bed5ce2015-06-25 15:10:28 -040018import com.google.common.annotations.Beta;
jcc4a20a5f2015-04-30 15:43:39 +080019import org.onosproject.core.DefaultGroupId;
samuel7a5691a2015-05-23 00:36:32 +080020import org.onosproject.incubator.net.tunnel.Tunnel.Type;
jcc4a20a5f2015-04-30 15:43:39 +080021import org.onosproject.net.Annotated;
wei wei89ddc322015-03-22 16:29:04 -050022import org.onosproject.net.Description;
samuel7a5691a2015-05-23 00:36:32 +080023import org.onosproject.net.Path;
jcc4a20a5f2015-04-30 15:43:39 +080024import org.onosproject.net.provider.ProviderId;
wei wei89ddc322015-03-22 16:29:04 -050025
26/**
jcc4a20a5f2015-04-30 15:43:39 +080027 * Describes a tunnel.
wei wei89ddc322015-03-22 16:29:04 -050028 */
Brian O'Connor2bed5ce2015-06-25 15:10:28 -040029@Beta
jcc4a20a5f2015-04-30 15:43:39 +080030public interface TunnelDescription extends Description, Annotated {
wei wei89ddc322015-03-22 16:29:04 -050031
32 /**
33 * Returns the tunnel id.
34 *
35 * @return tunnelId
36 */
37 TunnelId id();
38
39 /**
40 * Returns the connection point source.
41 *
42 * @return tunnel source ConnectionPoint
43 */
jcc4a20a5f2015-04-30 15:43:39 +080044 TunnelEndPoint src();
wei wei89ddc322015-03-22 16:29:04 -050045
46 /**
47 * Returns the connection point destination.
48 *
49 * @return tunnel destination
50 */
jcc4a20a5f2015-04-30 15:43:39 +080051 TunnelEndPoint dst();
wei wei89ddc322015-03-22 16:29:04 -050052
53 /**
54 * Returns the tunnel type.
55 *
56 * @return tunnel type
57 */
jcc4a20a5f2015-04-30 15:43:39 +080058 Type type();
wei wei89ddc322015-03-22 16:29:04 -050059
60 /**
jcc4a20a5f2015-04-30 15:43:39 +080061 * Returns group flow table id which a tunnel match up.
wei wei89ddc322015-03-22 16:29:04 -050062 *
jcc4a20a5f2015-04-30 15:43:39 +080063 * @return OpenFlowGroupId
wei wei89ddc322015-03-22 16:29:04 -050064 */
jcc4a20a5f2015-04-30 15:43:39 +080065 DefaultGroupId groupId();
wei wei89ddc322015-03-22 16:29:04 -050066
jcc4a20a5f2015-04-30 15:43:39 +080067 /**
68 * Returns tunnel producer name.
69 *
70 * @return producer name
71 */
72 ProviderId producerName();
73
74 /**
75 * Return the name of a tunnel.
76 *
77 * @return Tunnel Name
78 */
79 TunnelName tunnelName();
samuel7a5691a2015-05-23 00:36:32 +080080
81 /**
82 * Returns the path of the tunnel.
83 *
84 * @return the path of the tunnel
85 */
86 Path path();
wei wei89ddc322015-03-22 16:29:04 -050087}