blob: eca8fddc1458f0e0f2d4d7f97342b0bd4acdcd46 [file] [log] [blame]
wei wei89ddc322015-03-22 16:29:04 -05001/*
2 * Copyright 2015 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 */
Thomas Vachuskabf916ea2015-05-20 18:24:34 -070016
17package org.onosproject.incubator.net.tunnel;
wei wei89ddc322015-03-22 16:29:04 -050018
jcc4a20a5f2015-04-30 15:43:39 +080019import org.onosproject.core.DefaultGroupId;
20import org.onosproject.net.Annotated;
wei wei89ddc322015-03-22 16:29:04 -050021import org.onosproject.net.Description;
jcc4a20a5f2015-04-30 15:43:39 +080022import org.onosproject.net.provider.ProviderId;
Thomas Vachuskabf916ea2015-05-20 18:24:34 -070023import org.onosproject.incubator.net.tunnel.Tunnel.Type;
wei wei89ddc322015-03-22 16:29:04 -050024
25/**
jcc4a20a5f2015-04-30 15:43:39 +080026 * Describes a tunnel.
wei wei89ddc322015-03-22 16:29:04 -050027 */
jcc4a20a5f2015-04-30 15:43:39 +080028public interface TunnelDescription extends Description, Annotated {
wei wei89ddc322015-03-22 16:29:04 -050029
30 /**
31 * Returns the tunnel id.
32 *
33 * @return tunnelId
34 */
35 TunnelId id();
36
37 /**
38 * Returns the connection point source.
39 *
40 * @return tunnel source ConnectionPoint
41 */
jcc4a20a5f2015-04-30 15:43:39 +080042 TunnelEndPoint src();
wei wei89ddc322015-03-22 16:29:04 -050043
44 /**
45 * Returns the connection point destination.
46 *
47 * @return tunnel destination
48 */
jcc4a20a5f2015-04-30 15:43:39 +080049 TunnelEndPoint dst();
wei wei89ddc322015-03-22 16:29:04 -050050
51 /**
52 * Returns the tunnel type.
53 *
54 * @return tunnel type
55 */
jcc4a20a5f2015-04-30 15:43:39 +080056 Type type();
wei wei89ddc322015-03-22 16:29:04 -050057
58 /**
jcc4a20a5f2015-04-30 15:43:39 +080059 * Returns group flow table id which a tunnel match up.
wei wei89ddc322015-03-22 16:29:04 -050060 *
jcc4a20a5f2015-04-30 15:43:39 +080061 * @return OpenFlowGroupId
wei wei89ddc322015-03-22 16:29:04 -050062 */
jcc4a20a5f2015-04-30 15:43:39 +080063 DefaultGroupId groupId();
wei wei89ddc322015-03-22 16:29:04 -050064
jcc4a20a5f2015-04-30 15:43:39 +080065 /**
66 * Returns tunnel producer name.
67 *
68 * @return producer name
69 */
70 ProviderId producerName();
71
72 /**
73 * Return the name of a tunnel.
74 *
75 * @return Tunnel Name
76 */
77 TunnelName tunnelName();
wei wei89ddc322015-03-22 16:29:04 -050078}