blob: 14f4ba477a19604c761b42a670439bb11fa86889 [file] [log] [blame]
Gaurav Agrawalb102b012016-08-02 12:52:48 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Gaurav Agrawalb102b012016-08-02 12:52:48 +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 */
16
17package org.onosproject.yms.ydt;
18
19/**
20 * Abstraction of an entity which represents YANG management system operation
21 * result. Once the protocol translates the request information into a abstract
22 * YANG data tree, it uses YANG management system as a broker to get the
23 * operation executed in ONOS. Protocols uses a request Yang management
24 * system to delegate the operation request.
25 *
26 * YANG management system is responsible to split the protocol operation
27 * across application(s) which needs to participate, and collate the
28 * response(s) from application(s) and return an effective result of the
VinodKumarS-Huaweiaf9c7a72016-08-30 19:43:39 +053029 * operation request. The status of the operation execution is returned.
Gaurav Agrawalb102b012016-08-02 12:52:48 +053030 */
VinodKumarS-Huaweiaf9c7a72016-08-30 19:43:39 +053031public enum YmsOperationExecutionStatus {
32
33 /**
34 * Successful execution of the operation.
35 */
36 EXECUTION_SUCCESS,
37
38 /**
39 * Exception in execution of the operation.
40 */
41 EXECUTION_EXCEPTION,
42
43 /**
44 * Error in execution of the operation.
45 */
46 ERROR_EXCEPTION
Gaurav Agrawalb102b012016-08-02 12:52:48 +053047}