Avantika-Huawei | d1e36bd | 2016-05-26 12:47:16 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 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.pcep.controller; |
| 17 | |
| 18 | /** |
| 19 | * Representation of actions to be taken for LSPs on end of LSP-DB sync. |
| 20 | */ |
| 21 | public 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 | } |