blob: c120df379eb9a13454312fe8dade7c6707fbf144 [file] [log] [blame]
Avantika-Huaweid1e36bd2016-05-26 12:47:16 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Avantika-Huaweid1e36bd2016-05-26 12:47:16 +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 */
harikrushna-Huawei6ecfc772017-04-10 18:22:00 +053016package org.onosproject.pcep.server;
Avantika-Huaweid1e36bd2016-05-26 12:47:16 +053017
18/**
19 * Representation of actions to be taken for LSPs on end of LSP-DB sync.
20 */
21public enum PcepLspSyncAction {
22
23 /**
24 * Specifies that delete message for PCE intiiated tunnel should be sent.
25 */
26 SEND_DELETE(0),
27
28 /**
29 * Specifies that update message should be sent.
30 */
31 SEND_UPDATE(1),
32
33 /**
34 * Specifies that the tunnel should be removed from PCE.
35 */
36 REMOVE(2),
37
38 /**
39 * Specifies that the status of the tunnel should be set as unstable.
40 */
41 UNSTABLE(3);
42
43 int value;
44
45 /**
46 * Assigns val with the value for actions to be taken for LSPs on end of LSP-DB sync.
47 *
48 * @param val sync status
49 */
50 PcepLspSyncAction(int val) {
51 value = val;
52 }
53}