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-mapping-result {
\r
12 namespace "urn:opendaylight:params:xml:ns:yang:intent:mapping:result";
\r
13 prefix "intent-mapping-result";
\r
15 import nemo-engine-common {prefix nemo-engine-common;}
\r
16 import nemo-common {prefix nemo-common;}
\r
18 revision "2015-10-10" {
\r
20 "Initial revision.";
\r
23 grouping virtual-resource-instance {
\r
25 "Represents the abstract entity of the virtual resource,
\r
26 which can be a vport, vnode, vlink or vpath.";
\r
28 leaf virtual-resource-id {
\r
30 "A unique ID for a virtual resource.";
\r
31 type nemo-engine-common:virtual-resource-id;
\r
35 leaf virtual-resource-type {
\r
37 "The type of the virtual resource.";
\r
46 leaf virtual-resource-entity-id {
\r
48 "A unique ID for the entity corresponding to
\r
49 the virtual resource.";
\r
50 type nemo-engine-common:virtual-resource-entity-id;
\r
53 leaf parent-virtual-resource-entity-id {
\r
55 "A unique ID for the parent entity corresponding
\r
56 to the virtual resource. If the resource entity
\r
57 is a virtual port, it's parent entity is the
\r
58 virtual node which it belongs to.";
\r
59 type nemo-engine-common:virtual-resource-entity-id;
\r
63 grouping physical-resource-instance {
\r
65 "Represents the abstract entity of the physical resource,
\r
66 which can be a port, node or path.";
\r
68 leaf physical-resource-id {
\r
70 "A unique ID for a physical resource.";
\r
71 type nemo-engine-common:physical-resource-id;
\r
75 leaf physical-resource-type {
\r
77 "The type of the physical resource.";
\r
85 leaf physical-resource-entity-id {
\r
87 "A unique ID for the entity corresponding to
\r
88 the physical resource.";
\r
89 type nemo-engine-common:physical-resource-entity-id;
\r
92 leaf parent-physical-resource-entity-id {
\r
94 "A unique ID for the parent entity corresponding
\r
95 to the physical resource. If the resource entity
\r
96 is a physical port, it's parent entity is the
\r
97 physical node which it belongs to.";
\r
98 type nemo-engine-common:physical-resource-entity-id;
\r
102 container intent-vn-mapping-results {
\r
104 "Contains the intent-vn mapping results of all users.";
\r
106 list user-intent-vn-mapping {
\r
108 "Represents the intent-vn mapping results of a user.";
\r
113 "The user id for the intents that are mapped to
\r
114 the virtual resource.";
\r
115 type nemo-common:user-id;
\r
118 leaf virtual-network-id {
\r
120 "The virtual network id of the user.";
\r
121 type nemo-engine-common:virtual-network-id;
\r
124 list intent-vn-mapping-result {
\r
126 "Represents a intent-vn mapping result of the user.";
\r
131 "A unique ID for the user intent.";
\r
132 type nemo-common:intent-id;
\r
137 "The type of the user intent.";
\r
145 list virtual-resource {
\r
147 "The list of virtual resource corresponding to
\r
150 key "virtual-resource-id";
\r
151 uses virtual-resource-instance;
\r
155 "Specify the order of the virtual resource instance
\r
156 in a sequence list.";
\r
164 container vn-pn-mapping-results {
\r
166 "Contains the vn-pn mapping results of all users.";
\r
168 list user-vn-pn-mapping {
\r
170 "Represents the vn-pn mapping results of a user.";
\r
172 key "virtual-network-id";
\r
173 leaf virtual-network-id {
\r
175 "The virtual network id of the user.";
\r
176 type nemo-engine-common:virtual-network-id;
\r
181 "The user id for the virtual network.";
\r
182 type nemo-common:user-id;
\r
185 list vn-pn-mapping-result {
\r
187 "Represents a vn-pn mapping result of the user.";
\r
189 key "virtual-resource-entity-id";
\r
190 uses virtual-resource-instance;
\r
192 uses physical-resource-instance;
\r