Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 1 | module tapi-virtual-network {
|
Yuta HIGUCHI | 80d0bbd | 2018-02-28 11:13:11 -0800 | [diff] [blame] | 2 | namespace "urn:onf:otcc:yang:tapi-virtual-network";
|
Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 3 | prefix tapi-virtual-network;
|
| 4 | import tapi-topology {
|
| 5 | prefix tapi-topology;
|
| 6 | }
|
| 7 | import tapi-common {
|
| 8 | prefix tapi-common;
|
| 9 | }
|
Yuta HIGUCHI | 80d0bbd | 2018-02-28 11:13:11 -0800 | [diff] [blame] | 10 | organization "ONF OTCC (Open Transport Configuration & Control) Project";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 11 | contact "
|
| 12 | Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>
|
| 13 | Project List: <mailto:transport-api@opennetworking.org>
|
| 14 | Editor: Karthik Sethuraman
|
| 15 | <mailto:karthik.sethuraman@necam.com>";
|
Yuta HIGUCHI | 80d0bbd | 2018-02-28 11:13:11 -0800 | [diff] [blame] | 16 | description "
|
| 17 | This module contains TAPI Virtual Network Model definitions.
|
| 18 | Source: TapiVirtualNetwork.uml
|
hiroki | 96ab3c2 | 2018-12-11 14:10:52 -0800 | [diff] [blame] | 19 | - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.
|
| 20 | - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]
|
| 21 | <https://github.com/OpenNetworkingFoundation/EagleUmlYang>
|
| 22 | and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]
|
| 23 | <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>
|
| 24 | - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.
|
| 25 | As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.
|
| 26 | - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.
|
| 27 | The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.
|
| 28 | YANG models included in this release may not be backward compatible with previous TAPI releases.
|
Yuta HIGUCHI | 80d0bbd | 2018-02-28 11:13:11 -0800 | [diff] [blame] | 29 | Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
|
| 30 | License: This module is distributed under the Apache License 2.0";
|
hiroki | 96ab3c2 | 2018-12-11 14:10:52 -0800 | [diff] [blame] | 31 | revision 2018-12-10 {
|
| 32 | description "ONF Transport API version 2.1.1.
|
| 33 | Changes included in this TAPI release (v2.1.1) are listed in
|
| 34 | <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";
|
| 35 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
|
| 36 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
|
| 37 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 38 | revision 2018-10-16 {
|
| 39 | description "ONF Transport API version 2.1.0.
|
hiroki | 96ab3c2 | 2018-12-11 14:10:52 -0800 | [diff] [blame] | 40 | Changes included in this TAPI release (v2.1.0) are listed in
|
| 41 | <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 42 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 43 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
|
| 44 | }
|
Yuta HIGUCHI | 348bba7 | 2018-03-08 13:46:48 -0800 | [diff] [blame] | 45 | revision 2018-03-07 {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 46 | description "ONF Transport API version 2.0.2
|
| 47 | This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
|
Yuta HIGUCHI | e1ca23f | 2018-04-06 10:05:45 -0700 | [diff] [blame] | 48 | Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 49 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
|
Yuta HIGUCHI | e1ca23f | 2018-04-06 10:05:45 -0700 | [diff] [blame] | 50 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
|
| 51 | }
|
| 52 | revision 2018-02-16 {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 53 | description "ONF Transport API version 2.0.1
|
| 54 | This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
|
Yuta HIGUCHI | e1ca23f | 2018-04-06 10:05:45 -0700 | [diff] [blame] | 55 | Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 56 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
|
Yuta HIGUCHI | e1ca23f | 2018-04-06 10:05:45 -0700 | [diff] [blame] | 57 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";
|
| 58 | }
|
| 59 | revision 2018-01-02 {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 60 | description "ONF Transport API version 2.0.0
|
| 61 | This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
|
Yuta HIGUCHI | e1ca23f | 2018-04-06 10:05:45 -0700 | [diff] [blame] | 62 | Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 63 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
|
Yuta HIGUCHI | e1ca23f | 2018-04-06 10:05:45 -0700 | [diff] [blame] | 64 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";
|
Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 65 | }
|
| 66 | augment "/tapi-common:context" {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 67 | container virtual-network-context {
|
| 68 | uses virtual-network-context;
|
| 69 | description "Augments the base TAPI Context with VirtualNetworkService information";
|
| 70 | }
|
Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 71 | description "Augments the base TAPI Context with VirtualNetworkService information";
|
| 72 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 73 |
|
| 74 | /**************************
|
Yuta HIGUCHI | 7f165b1 | 2018-03-25 19:05:29 -0700 | [diff] [blame] | 75 | * definitions of refrences
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 76 | **************************/
|
Yuta HIGUCHI | 7f165b1 | 2018-03-25 19:05:29 -0700 | [diff] [blame] | 77 | grouping virtual-nw-service-ref {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 78 | leaf virtual-nw-service-uuid {
|
Yuta HIGUCHI | 7f165b1 | 2018-03-25 19:05:29 -0700 | [diff] [blame] | 79 | type leafref {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 80 | path '/tapi-common:context/tapi-virtual-network:virtual-network-context/tapi-virtual-network:virtual-nw-service/tapi-virtual-network:uuid';
|
Yuta HIGUCHI | 7f165b1 | 2018-03-25 19:05:29 -0700 | [diff] [blame] | 81 | }
|
| 82 | description "none";
|
| 83 | }
|
| 84 | description "none";
|
| 85 | }
|
Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 86 |
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 87 | /**************************
|
| 88 | * package object-classes
|
| 89 | **************************/
|
| 90 | grouping virtual-network-constraint {
|
| 91 | container src-service-end-point {
|
| 92 | uses tapi-common:service-interface-point-ref;
|
| 93 | config false;
|
| 94 | description "none";
|
| 95 | }
|
| 96 | container sink-service-end-point {
|
| 97 | uses tapi-common:service-interface-point-ref;
|
| 98 | config false;
|
| 99 | description "none";
|
| 100 | }
|
| 101 | list diversity-exclusion {
|
| 102 | uses virtual-nw-service-ref;
|
| 103 | key 'virtual-nw-service-uuid';
|
| 104 | config false;
|
| 105 | description "none";
|
| 106 | }
|
| 107 | container requested-capacity {
|
| 108 | uses tapi-common:capacity;
|
| 109 | description "none";
|
| 110 | }
|
| 111 | leaf service-level {
|
| 112 | type string;
|
| 113 | description "An abstract value the meaning of which is mutually agreed – typically represents metrics such as - Class of service, priority, resiliency, availability";
|
| 114 | }
|
| 115 | leaf-list service-layer {
|
| 116 | type tapi-common:layer-protocol-name;
|
| 117 | description "none";
|
| 118 | }
|
| 119 | list cost-characteristic {
|
| 120 | key 'cost-name';
|
| 121 | uses tapi-topology:cost-characteristic;
|
| 122 | description "The list of costs where each cost relates to some aspect of the TopologicalEntity.";
|
| 123 | }
|
| 124 | list latency-characteristic {
|
| 125 | key 'traffic-property-name';
|
| 126 | uses tapi-topology:latency-characteristic;
|
| 127 | description "The effect on the latency of a queuing process. This only has significant effect for packet based systems and has a complex characteristic.";
|
| 128 | }
|
| 129 | uses tapi-common:local-class;
|
| 130 | description "none";
|
| 131 | }
|
| 132 | grouping virtual-network-service {
|
| 133 | container topology {
|
| 134 | uses tapi-topology:topology-ref;
|
| 135 | config false;
|
| 136 | description "none";
|
| 137 | }
|
| 138 | list end-point {
|
| 139 | key 'local-id';
|
| 140 | min-elements 2;
|
| 141 | uses virtual-network-service-end-point;
|
| 142 | description "none";
|
| 143 | }
|
| 144 | list vnw-constraint {
|
| 145 | key 'local-id';
|
| 146 | min-elements 1;
|
| 147 | uses virtual-network-constraint;
|
| 148 | description "none";
|
| 149 | }
|
| 150 | leaf schedule {
|
| 151 | type string;
|
| 152 | description "none";
|
| 153 | }
|
| 154 | container state {
|
| 155 | uses tapi-common:admin-state-pac;
|
| 156 | description "none";
|
| 157 | }
|
| 158 | leaf-list layer-protocol-name {
|
| 159 | type tapi-common:layer-protocol-name;
|
| 160 | min-elements 1;
|
| 161 | description "none";
|
| 162 | }
|
| 163 | uses tapi-common:service-spec;
|
| 164 | description "The ForwardingConstruct (FC) object class models enabled potential for forwarding between two or more LTPs and like the LTP supports any transport protocol including all circuit and packet forms.
|
| 165 | At the lowest level of recursion, a FC represents a cross-connection within an NE.";
|
| 166 | }
|
| 167 | grouping virtual-network-service-end-point {
|
| 168 | container service-interface-point {
|
| 169 | uses tapi-common:service-interface-point-ref;
|
| 170 | config false;
|
| 171 | description "none";
|
| 172 | }
|
| 173 | leaf role {
|
| 174 | type tapi-common:port-role;
|
| 175 | config false;
|
| 176 | description "Each EP of the FC has a role (e.g., working, protection, protected, symmetric, hub, spoke, leaf, root) in the context of the FC with respect to the FC function. ";
|
| 177 | }
|
| 178 | leaf direction {
|
| 179 | type tapi-common:port-direction;
|
| 180 | config false;
|
| 181 | description "The orientation of defined flow at the EndPoint.";
|
| 182 | }
|
| 183 | leaf service-layer {
|
| 184 | type tapi-common:layer-protocol-name;
|
| 185 | config false;
|
| 186 | description "none";
|
| 187 | }
|
| 188 | uses tapi-common:local-class;
|
| 189 | description "The association of the FC to LTPs is made via EndPoints.
|
| 190 | The EndPoint (EP) object class models the access to the FC function.
|
| 191 | The traffic forwarding between the associated EPs of the FC depends upon the type of FC and may be associated with FcSwitch object instances.
|
| 192 | In cases where there is resilience the EndPoint may convey the resilience role of the access to the FC.
|
| 193 | It can represent a protected (resilient/reliable) point or a protecting (unreliable working or protection) point.
|
| 194 | The EP replaces the Protection Unit of a traditional protection model.
|
| 195 | The ForwadingConstruct can be considered as a component and the EndPoint as a Port on that component";
|
| 196 | }
|
| 197 | grouping virtual-network-context {
|
| 198 | list virtual-nw-service {
|
| 199 | key 'uuid';
|
| 200 | uses virtual-network-service;
|
| 201 | description "none";
|
| 202 | }
|
| 203 | description "none";
|
| 204 | }
|
Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 205 |
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 206 | /**************************
|
| 207 | * package interfaces
|
| 208 | **************************/
|
| 209 | rpc create-virtual-network-service {
|
| 210 | description "none";
|
| 211 | input {
|
| 212 | list sep {
|
| 213 | key 'local-id';
|
| 214 | min-elements 2;
|
| 215 | uses virtual-network-service-end-point;
|
| 216 | description "none";
|
| 217 | }
|
| 218 | container vnw-constraint {
|
| 219 | uses virtual-network-constraint;
|
| 220 | description "none";
|
| 221 | }
|
| 222 | leaf conn-schedule {
|
| 223 | type string;
|
| 224 | description "none";
|
| 225 | }
|
| 226 | }
|
| 227 | output {
|
| 228 | container service {
|
| 229 | uses virtual-network-service;
|
| 230 | description "none";
|
| 231 | }
|
| 232 | }
|
| 233 | }
|
| 234 | rpc delete-virtual-network-service {
|
| 235 | description "none";
|
| 236 | input {
|
| 237 | leaf service-id-or-name {
|
| 238 | type string;
|
| 239 | description "none";
|
| 240 | }
|
| 241 | }
|
| 242 | output {
|
| 243 | container service {
|
| 244 | uses virtual-network-service;
|
| 245 | description "none";
|
| 246 | }
|
| 247 | }
|
| 248 | }
|
| 249 | rpc get-virtual-network-service-details {
|
| 250 | description "none";
|
| 251 | input {
|
| 252 | leaf service-id-or-name {
|
| 253 | type string;
|
| 254 | description "none";
|
| 255 | }
|
| 256 | }
|
| 257 | output {
|
| 258 | container service {
|
| 259 | uses virtual-network-service;
|
| 260 | description "none";
|
| 261 | }
|
| 262 | }
|
| 263 | }
|
| 264 | rpc get-virtual-network-service-list {
|
| 265 | description "none";
|
| 266 | output {
|
| 267 | list service {
|
| 268 | key 'uuid';
|
| 269 | uses virtual-network-service;
|
| 270 | description "none";
|
| 271 | }
|
| 272 | }
|
| 273 | }
|
Toru Furusawa | 2898889 | 2017-10-30 17:28:40 -0700 | [diff] [blame] | 274 | }
|