Henry Yu | 4b4a7eb | 2016-11-09 20:07:53 -0500 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame^] | 2 | * Copyright 2016 Open Networking Foundation |
Henry Yu | 4b4a7eb | 2016-11-09 20:07:53 -0500 | [diff] [blame] | 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 | package org.onosproject.tetopology.management.api.node; |
| 17 | |
| 18 | import org.onosproject.tetopology.management.api.link.ElementType; |
| 19 | import org.onosproject.tetopology.management.api.link.TePathAttributes; |
| 20 | import org.onosproject.tetopology.management.api.link.UnderlayAbstractPath; |
| 21 | |
| 22 | import java.util.BitSet; |
| 23 | import java.util.List; |
| 24 | |
| 25 | /** |
| 26 | * The connectivity between tunnel termination point and link termination |
| 27 | * points. |
| 28 | */ |
| 29 | public class LocalLinkConnectivity extends AbstractConnectivity { |
| 30 | /** |
| 31 | * Indicates that the link connectivity is disabled. |
| 32 | */ |
| 33 | public static final short BIT_DISABLED = 0; |
| 34 | |
| 35 | /** |
| 36 | * Indicates that an alternative path of the link connection is |
| 37 | * available. |
| 38 | */ |
| 39 | public static final short BIT_ALTERNATIVE_PATH_AVAILABLE = 1; |
| 40 | |
| 41 | /** |
| 42 | * Creates a local link connectivity instance. |
| 43 | * |
| 44 | * @param constrainingElements list of elements that can be constrained |
| 45 | * or connected to |
| 46 | * @param flags indicate whether this connectivity is usable |
| 47 | * @param teAttributes the connectivity path TE attributes |
| 48 | * @param underlayPath the underlay path |
| 49 | */ |
| 50 | public LocalLinkConnectivity(List<ElementType> constrainingElements, BitSet flags, |
| 51 | TePathAttributes teAttributes, |
| 52 | UnderlayAbstractPath underlayPath) { |
| 53 | super(constrainingElements, flags, teAttributes, underlayPath); |
| 54 | } |
| 55 | |
| 56 | } |