blob: e00f2b801638e62a48fac63ad9c8064e92902ab0 [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 /**
Charles Chanfc5c7802016-05-17 13:13:55 -070037 * The group installation for this objective failed.
alshabib2a441c62015-04-13 18:39:38 -070038 */
39 GROUPINSTALLATIONFAILED,
40
41 /**
Charles Chanfc5c7802016-05-17 13:13:55 -070042 * The group removal for this objective failed.
43 */
44 GROUPREMOVALFAILED,
45
46 /**
Saurav Das100e3b82015-04-30 11:12:10 -070047 * The group was reported as installed but is missing.
alshabib2a441c62015-04-13 18:39:38 -070048 */
49 GROUPMISSING,
50
51 /**
Jonathan Hart17d00452015-04-21 17:10:00 -070052 * The device was not available to install objectives to.
53 */
54 DEVICEMISSING,
55
56 /**
Saurav Das100e3b82015-04-30 11:12:10 -070057 * Incorrect Objective parameters passed in by the caller.
58 */
59 BADPARAMS,
60
61 /**
Andrea Campanella1f8188d2016-02-29 13:24:54 -080062 * The device has no pipeline driver to install objectives.
63 */
64 NOPIPELINER,
65
66 /**
alshabib2a441c62015-04-13 18:39:38 -070067 * An unknown error occurred.
68 */
Yi Tseng38fc71e2017-02-03 14:50:47 -080069 UNKNOWN,
70
71 /**
72 * Flow/Group installation retry threshold exceeded.
73 */
74 INSTALLATIONTHRESHOLDEXCEEDED,
75
76 /**
77 * Installation timeout.
78 */
79 INSTALLATIONTIMEOUT,
80
81 /**
82 * Group already exists.
83 */
84 GROUPEXISTS
alshabib2a441c62015-04-13 18:39:38 -070085}