blob: ae8f3142c3e10e1b0740f01778c7662627bacdb3 [file] [log] [blame]
Henry Yu4b4a7eb2016-11-09 20:07:53 -05001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016 Open Networking Foundation
Henry Yu4b4a7eb2016-11-09 20:07:53 -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 */
16package org.onosproject.tetopology.management.api.node;
17
18import org.onosproject.tetopology.management.api.link.ElementType;
19import org.onosproject.tetopology.management.api.link.TePathAttributes;
20import org.onosproject.tetopology.management.api.link.UnderlayAbstractPath;
21
22import java.util.BitSet;
23import java.util.List;
24
25/**
26 * The connectivity between tunnel termination point and link termination
27 * points.
28 */
29public 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}