blob: 443e19ec9adb4e5bb4b4974b587bf08398990199 [file] [log] [blame]
Priyanka B7991c752016-03-26 19:52:44 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Priyanka B7991c752016-03-26 19:52:44 +05303 *
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.pce.pceservice;
18
19/**
20 * Representation of LSP type.
21 */
22public enum LspType {
23 /**
24 * Signifies that path is created via signaling mode.
25 */
26 WITH_SIGNALLING(0),
27
28 /**
29 * Signifies that path is created via SR mode.
30 */
31 SR_WITHOUT_SIGNALLING(1),
32
33 /**
34 * Signifies that path is created via without signaling and without SR mode.
35 */
36 WITHOUT_SIGNALLING_AND_WITHOUT_SR(2);
37
38 int value;
39
40 /**
41 * Assign val with the value as the LSP type.
42 *
43 * @param val LSP type
44 */
45 LspType(int val) {
46 value = val;
47 }
48
49 /**
50 * Returns value of LSP type.
51 *
52 * @return LSP type
53 */
54 public byte type() {
55 return (byte) value;
56 }
57}