blob: 17be45b5ad455b4fdb1133a92e4dafcc3c68b66d [file] [log] [blame]
Andreas Pantelopoulos4c7de132018-02-22 12:32:42 -08001/*
2 * Copyright 2016-present Open Networking Foundation
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 */
16
17package org.onosproject.segmentrouting.pwaas;
18
19import org.onlab.packet.VlanId;
20import org.onosproject.net.ConnectPoint;
21
22public interface L2TunnelPolicy {
23
24 /**
25 * Returns the first connect point of the policy.
26 *
27 * @return first connect point
28 */
29 ConnectPoint cP1();
30
31 /**
32 * Returns the second connect point of the policy.
33 *
34 * @return second connect point
35 */
36 ConnectPoint cP2();
37
38 /**
39 * Returns the cP1 inner vlan tag of the policy.
40 *
41 * @return cP1 inner vlan tag
42 */
43 VlanId cP1InnerTag();
44
45 /**
46 * Returns the cP1 outer vlan tag of the policy.
47 *
48 * @return cP1 outer vlan tag
49 */
50 VlanId cP1OuterTag();
51
52 /**
53 * Returns the cP2 inner vlan tag of the policy.
54 *
55 * @return cP2 inner vlan tag
56 */
57 VlanId cP2InnerTag();
58
59 /**
60 * Returns the cP2 outer vlan tag of the policy.
61 *
62 * @return cP2 outer vlan tag
63 */
64 VlanId cP2OuterTag();
65
66 /**
67 * Returns the tunnel ID of the policy.
68 *
69 * @return Tunnel ID
70 */
71 long tunnelId();
72}