alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [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.net.flowobjective; |
| 17 | |
Thomas Vachuska | a9d491e | 2015-05-20 11:17:21 -0700 | [diff] [blame] | 18 | import com.google.common.annotations.Beta; |
| 19 | |
alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [diff] [blame] | 20 | /** |
| 21 | * Represents the set of errors possible when processing an objective. |
| 22 | */ |
Thomas Vachuska | a9d491e | 2015-05-20 11:17:21 -0700 | [diff] [blame] | 23 | @Beta |
alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [diff] [blame] | 24 | public enum ObjectiveError { |
| 25 | |
| 26 | /** |
| 27 | * The driver processing this objective does not know how to process it. |
| 28 | */ |
| 29 | UNSUPPORTED, |
| 30 | |
| 31 | /** |
| 32 | * The flow installation for this objective failed. |
| 33 | */ |
| 34 | FLOWINSTALLATIONFAILED, |
| 35 | |
| 36 | /** |
Charles Chan | fc5c780 | 2016-05-17 13:13:55 -0700 | [diff] [blame] | 37 | * The group installation for this objective failed. |
alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [diff] [blame] | 38 | */ |
| 39 | GROUPINSTALLATIONFAILED, |
| 40 | |
| 41 | /** |
Charles Chan | fc5c780 | 2016-05-17 13:13:55 -0700 | [diff] [blame] | 42 | * The group removal for this objective failed. |
| 43 | */ |
| 44 | GROUPREMOVALFAILED, |
| 45 | |
| 46 | /** |
Saurav Das | 100e3b8 | 2015-04-30 11:12:10 -0700 | [diff] [blame] | 47 | * The group was reported as installed but is missing. |
alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [diff] [blame] | 48 | */ |
| 49 | GROUPMISSING, |
| 50 | |
| 51 | /** |
Jonathan Hart | 17d0045 | 2015-04-21 17:10:00 -0700 | [diff] [blame] | 52 | * The device was not available to install objectives to. |
| 53 | */ |
| 54 | DEVICEMISSING, |
| 55 | |
| 56 | /** |
Saurav Das | 100e3b8 | 2015-04-30 11:12:10 -0700 | [diff] [blame] | 57 | * Incorrect Objective parameters passed in by the caller. |
| 58 | */ |
| 59 | BADPARAMS, |
| 60 | |
| 61 | /** |
Andrea Campanella | 1f8188d | 2016-02-29 13:24:54 -0800 | [diff] [blame] | 62 | * The device has no pipeline driver to install objectives. |
| 63 | */ |
| 64 | NOPIPELINER, |
| 65 | |
| 66 | /** |
alshabib | 2a441c6 | 2015-04-13 18:39:38 -0700 | [diff] [blame] | 67 | * An unknown error occurred. |
| 68 | */ |
| 69 | UNKNOWN |
| 70 | } |