blob: 8c20449352c569ad93afd43076fc95f7f3ca9624 [file] [log] [blame]
alshabib2a441c62015-04-13 18:39:38 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
alshabib2a441c62015-04-13 18:39:38 -07003 *
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.net.flowobjective;
17
Thomas Vachuskaa9d491e2015-05-20 11:17:21 -070018import com.google.common.annotations.Beta;
19
alshabib2a441c62015-04-13 18:39:38 -070020/**
21 * Represents the set of errors possible when processing an objective.
22 */
Thomas Vachuskaa9d491e2015-05-20 11:17:21 -070023@Beta
alshabib2a441c62015-04-13 18:39:38 -070024public 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 /**
37 * THe group installation for this objective failed.
38 */
39 GROUPINSTALLATIONFAILED,
40
41 /**
Saurav Das100e3b82015-04-30 11:12:10 -070042 * The group was reported as installed but is missing.
alshabib2a441c62015-04-13 18:39:38 -070043 */
44 GROUPMISSING,
45
46 /**
Jonathan Hart17d00452015-04-21 17:10:00 -070047 * The device was not available to install objectives to.
48 */
49 DEVICEMISSING,
50
51 /**
Saurav Das100e3b82015-04-30 11:12:10 -070052 * Incorrect Objective parameters passed in by the caller.
53 */
54 BADPARAMS,
55
56 /**
Andrea Campanella1f8188d2016-02-29 13:24:54 -080057 * The device has no pipeline driver to install objectives.
58 */
59 NOPIPELINER,
60
61 /**
alshabib2a441c62015-04-13 18:39:38 -070062 * An unknown error occurred.
63 */
64 UNKNOWN
65}