Andreas Pantelopoulos | 4c7de13 | 2018-02-22 12:32:42 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.segmentrouting.pwaas; |
| 18 | |
| 19 | public interface L2TunnelDescription { |
| 20 | |
| 21 | /** |
| 22 | * Returns the l2 tunnel. |
| 23 | * |
| 24 | * @return the l2 tunnel |
| 25 | */ |
| 26 | L2Tunnel l2Tunnel(); |
| 27 | |
| 28 | /** |
| 29 | * Returns the l2 tunnel policy. |
| 30 | * |
| 31 | * @return the l2 tunnel policy. |
| 32 | */ |
| 33 | L2TunnelPolicy l2TunnelPolicy(); |
| 34 | |
| 35 | /** |
| 36 | * Sets the l2 tunnel. |
| 37 | * |
| 38 | * @param tunnel the l2 tunnel to set. |
| 39 | */ |
| 40 | void setL2Tunnel(L2Tunnel tunnel); |
| 41 | |
| 42 | /** |
| 43 | * Sets the l2 policy. |
| 44 | * |
| 45 | * @param policy the policy to set. |
| 46 | */ |
| 47 | void setL2TunnelPolicy(L2TunnelPolicy policy); |
| 48 | } |