2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 module intent-processing-status {
\r
12 namespace "urn:opendaylight:params:xml:ns:yang:intent:processing:status";
\r
13 prefix "intent-processing-status";
\r
15 import nemo-common {prefix nemo-common;}
\r
17 revision "2015-10-10" {
\r
19 "Initial revision.";
\r
22 grouping intent-status {
\r
25 "Represents the current processing status of the user intent
\r
26 maintained by the NEMO engine or the user's transaction.";
\r
28 enum processing-succeeded {
\r
30 "The user intent has been successfully processed by the
\r
31 NEMO engine and the underlying network has been configured
\r
32 by some renderer if necessary, or the user's transaction
\r
33 has been processed successfully.";
\r
35 enum in-processing {
\r
37 "The user intent is being processed by the NEMO engine, or
\r
38 some intents in the user's transaction are being processed.";
\r
40 enum processing-failed {
\r
42 "The processing for the user intent by the NEMO engine is
\r
43 failed, the reason might be syntax error, insufficient
\r
44 underlying network resources, etc, and is described in
\r
45 the message in detail. Or the processing for the user's
\r
46 transaction is failed.";
\r
55 "The human-readable and detailed message about the status.";
\r
61 container intent-processing-statuses {
\r
63 "Contains the intent processing statuses of all users
\r
64 maintained by the NEMO engine.";
\r
66 list user-intent-status {
\r
68 "Represents the list of all users with their intent statuses.";
\r
73 "The unique ID for the user.";
\r
74 type nemo-common:user-id;
\r
77 container transaction-status {
\r
79 "Contains the user's transaction status information.
\r
80 When all user intents in the transaction have been
\r
81 successfully processed, the transaction status will
\r
82 be set to processing-succeeded. If the processing for
\r
83 some user intents in the transaction is failed, the
\r
84 transaction status will be set to processing-failed.";
\r
89 container object-statuses {
\r
91 "Contains all object intent statuses of the user.";
\r
95 "The list of all node intent statuses of the user.";
\r
100 "The unique ID for the node.";
\r
101 type nemo-common:node-id;
\r
104 uses intent-status;
\r
108 list connection-status {
\r
110 "The list of all connection intent statuses of the user.";
\r
112 key "connection-id";
\r
113 leaf connection-id {
\r
115 "The unique ID for the connection.";
\r
116 type nemo-common:connection-id;
\r
119 uses intent-status;
\r
125 "The list of all flow intent statuses of the user.";
\r
130 "The unique ID for the flow.";
\r
131 type nemo-common:flow-id;
\r
134 uses intent-status;
\r
139 container operation-statuses {
\r
141 "Contains all operation intent statuses of the user.";
\r
143 list operation-status {
\r
145 "The list of all operation intent statuses of the user.";
\r
147 key "operation-id";
\r
148 leaf operation-id {
\r
150 "The unique ID for the operation.";
\r
151 type nemo-common:operation-id;
\r
154 uses intent-status;
\r
159 container result-statuses {
\r