hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 1 | module tapi-oam {
|
| 2 | namespace "urn:onf:otcc:yang:tapi-oam";
|
| 3 | prefix tapi-oam;
|
| 4 | import tapi-common {
|
| 5 | prefix tapi-common;
|
| 6 | }
|
| 7 | import tapi-connectivity {
|
| 8 | prefix tapi-connectivity;
|
| 9 | }
|
| 10 | import tapi-topology {
|
| 11 | prefix tapi-topology;
|
| 12 | }
|
| 13 | organization "ONF OTCC (Open Transport Configuration & Control) Project";
|
| 14 | contact "
|
| 15 | Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>
|
| 16 | Project List: <mailto:transport-api@opennetworking.org>
|
| 17 | Editor: Karthik Sethuraman
|
| 18 | <mailto:karthik.sethuraman@necam.com>";
|
| 19 | description "
|
| 20 | This module contains TAPI OAM Model definitions.
|
| 21 | Source: TapiOam.uml
|
| 22 | Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
|
| 23 | License: This module is distributed under the Apache License 2.0";
|
| 24 | revision 2018-10-16 {
|
| 25 | description "ONF Transport API version 2.1.0.
|
| 26 | - The TAPI YANG models included in this TAPI release (v2.1.0) are a *normative* part of the TAPI SDK.
|
| 27 | - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]
|
| 28 | <https://github.com/OpenNetworkingFoundation/EagleUmlYang>
|
| 29 | and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]
|
| 30 | <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>
|
| 31 | - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.
|
| 32 | As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.
|
| 33 | - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.
|
| 34 | The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.
|
| 35 | YANG models included in this release are not backward compatible with previous TAPI releases.
|
| 36 | - Changes included in this TAPI release (v2.1.0) are listed in
|
| 37 | <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] | 38 | 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] | 39 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
|
| 40 | }
|
| 41 | revision 2018-03-07 {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 42 | description "ONF Transport API version 2.0.2
|
| 43 | This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 44 | 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] | 45 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 46 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
|
| 47 | }
|
| 48 | revision 2018-02-16 {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 49 | description "ONF Transport API version 2.0.1
|
| 50 | This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 51 | 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] | 52 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 53 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";
|
| 54 | }
|
| 55 | revision 2018-01-02 {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 56 | description "ONF Transport API version 2.0.0
|
| 57 | This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 58 | 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] | 59 | reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 60 | <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";
|
| 61 | }
|
| 62 | augment "/tapi-common:context" {
|
| 63 | container oam-context {
|
| 64 | uses oam-context;
|
| 65 | description "Augments the base TAPI Context with OamService information";
|
| 66 | }
|
| 67 | description "Augments the base TAPI Context with OamService information";
|
| 68 | }
|
| 69 | augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 70 | container mep-mip-list {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 71 | uses mep-mip-list;
|
| 72 | description "none";
|
| 73 | }
|
| 74 | description "none";
|
| 75 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 76 |
|
| 77 | /**************************
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 78 | * definitions of references
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 79 | **************************/
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 80 | grouping oam-service-ref {
|
| 81 | leaf oam-service-uuid {
|
| 82 | type leafref {
|
| 83 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:uuid';
|
| 84 | }
|
| 85 | description "none";
|
| 86 | }
|
| 87 | description "none";
|
| 88 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 89 | grouping oam-service-end-point-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 90 | uses oam-service-ref;
|
| 91 | leaf oam-service-end-point-local-id {
|
| 92 | type leafref {
|
| 93 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:end-point/tapi-oam:local-id';
|
| 94 | }
|
| 95 | description "none";
|
| 96 | }
|
| 97 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 98 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 99 | grouping meg-ref {
|
| 100 | leaf meg-uuid {
|
| 101 | type leafref {
|
| 102 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:uuid';
|
| 103 | }
|
| 104 | description "none";
|
| 105 | }
|
| 106 | description "none";
|
| 107 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 108 | grouping maintenance-entity-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 109 | uses meg-ref;
|
| 110 | leaf maintenance-entity-local-id {
|
| 111 | type leafref {
|
| 112 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:me/tapi-oam:local-id';
|
| 113 | }
|
| 114 | description "none";
|
| 115 | }
|
| 116 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 117 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 118 | grouping mep-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 119 | uses meg-ref;
|
| 120 | leaf mep-local-id {
|
| 121 | type leafref {
|
| 122 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep/tapi-oam:local-id';
|
| 123 | }
|
| 124 | description "none";
|
| 125 | }
|
| 126 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 127 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 128 | grouping mip-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 129 | uses meg-ref;
|
| 130 | leaf mip-local-id {
|
| 131 | type leafref {
|
| 132 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip/tapi-oam:local-id';
|
| 133 | }
|
| 134 | description "none";
|
| 135 | }
|
| 136 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 137 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 138 | grouping oam-job-ref {
|
| 139 | leaf oam-job-uuid {
|
| 140 | type leafref {
|
| 141 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:uuid';
|
| 142 | }
|
| 143 | description "none";
|
| 144 | }
|
| 145 | description "none";
|
| 146 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 147 | grouping pm-current-data-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 148 | uses oam-job-ref;
|
| 149 | leaf pm-current-data-local-id {
|
| 150 | type leafref {
|
| 151 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:local-id';
|
| 152 | }
|
| 153 | description "none";
|
| 154 | }
|
| 155 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 156 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 157 | grouping pm-history-data-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 158 | uses pm-current-data-ref;
|
| 159 | leaf pm-history-data-local-id {
|
| 160 | type leafref {
|
| 161 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:pm-history-data/tapi-oam:local-id';
|
| 162 | }
|
| 163 | description "none";
|
| 164 | }
|
| 165 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 166 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 167 | grouping oam-profile-ref {
|
| 168 | leaf oam-profile-uuid {
|
| 169 | type leafref {
|
| 170 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:uuid';
|
| 171 | }
|
| 172 | description "none";
|
| 173 | }
|
| 174 | description "none";
|
| 175 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 176 | grouping pm-threshold-data-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 177 | uses oam-profile-ref;
|
| 178 | leaf pm-threshold-data-local-id {
|
| 179 | type leafref {
|
| 180 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data/tapi-oam:local-id';
|
| 181 | }
|
| 182 | description "none";
|
| 183 | }
|
| 184 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 185 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 186 | grouping pm-bin-data-ref {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 187 | uses oam-profile-ref;
|
| 188 | leaf pm-bin-data-local-id {
|
| 189 | type leafref {
|
| 190 | path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-bin-data/tapi-oam:local-id';
|
| 191 | }
|
| 192 | description "none";
|
| 193 | }
|
| 194 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 195 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 196 |
|
| 197 | /**************************
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 198 | * package object-classes
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 199 | **************************/
|
| 200 | grouping mep {
|
| 201 | leaf layer-protocol-name {
|
| 202 | type tapi-common:layer-protocol-name;
|
| 203 | config false;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 204 | description "none";
|
| 205 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 206 | leaf direction {
|
| 207 | type tapi-common:termination-direction;
|
| 208 | config false;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 209 | description "none";
|
| 210 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 211 | leaf mep-identifier {
|
| 212 | type string;
|
| 213 | config false;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 214 | description "none";
|
| 215 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 216 | leaf-list peer-mep-identifier {
|
| 217 | type string;
|
| 218 | config false;
|
| 219 | min-elements 1;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 220 | description "none";
|
| 221 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 222 | uses tapi-common:local-class;
|
| 223 | uses tapi-common:operational-state-pac;
|
| 224 | description "none";
|
| 225 | }
|
| 226 | grouping oam-job {
|
| 227 | list oam-service-end-point {
|
| 228 | uses oam-service-end-point-ref;
|
| 229 | key 'oam-service-uuid oam-service-end-point-local-id';
|
| 230 | min-elements 1;
|
| 231 | description "none";
|
| 232 | }
|
| 233 | container oam-profile {
|
| 234 | uses oam-profile-ref;
|
| 235 | description "none";
|
| 236 | }
|
| 237 | list pm-current-data {
|
| 238 | key 'local-id';
|
| 239 | config false;
|
| 240 | uses pm-current-data;
|
| 241 | description "Granularity period of the CurrentData identifies the specific CurrentData instance in the scope of this OamJob.
|
| 242 | For example, typically at least
|
| 243 | one 15min and
|
| 244 | one 24hr;
|
| 245 | optionally one additional configurable (< 15min)";
|
| 246 | }
|
| 247 | leaf oam-job-type {
|
| 248 | type oam-job-type;
|
| 249 | description "none";
|
| 250 | }
|
| 251 | container schedule {
|
| 252 | uses tapi-common:time-range;
|
| 253 | description "none";
|
| 254 | }
|
| 255 | leaf creation-time {
|
| 256 | type tapi-common:date-and-time;
|
| 257 | config false;
|
| 258 | description "none";
|
| 259 | }
|
| 260 | uses tapi-common:global-class;
|
| 261 | uses tapi-common:admin-state-pac;
|
| 262 | description "none";
|
| 263 | }
|
| 264 | grouping meg {
|
| 265 | list mep {
|
| 266 | key 'local-id';
|
| 267 | config false;
|
| 268 | uses mep;
|
| 269 | description "1. ME may have 0 MEPs (case of transit domains where at least 1 MIP is present)
|
| 270 | 2. ME may have 1 MEP (case of edge domaind, where the peer MEP is ouside the managed domain)
|
| 271 | 3. ME may have 2 MEPs";
|
| 272 | }
|
| 273 | list mip {
|
| 274 | key 'local-id';
|
| 275 | config false;
|
| 276 | uses mip;
|
| 277 | description "ME may 0, 1, or more MIPs";
|
| 278 | }
|
| 279 | leaf layer-protocol-name {
|
| 280 | type tapi-common:layer-protocol-name;
|
| 281 | config false;
|
| 282 | description "none";
|
| 283 | }
|
| 284 | leaf direction {
|
| 285 | type tapi-common:forwarding-direction;
|
| 286 | config false;
|
| 287 | description "none";
|
| 288 | }
|
| 289 | leaf meg-level {
|
| 290 | type uint64;
|
| 291 | config false;
|
| 292 | description "none";
|
| 293 | }
|
| 294 | leaf meg-identifier {
|
| 295 | type string;
|
| 296 | config false;
|
| 297 | description "none";
|
| 298 | }
|
| 299 | uses tapi-common:resource-spec;
|
| 300 | uses tapi-common:operational-state-pac;
|
| 301 | description "none";
|
| 302 | }
|
| 303 | grouping mip {
|
| 304 | leaf layer-protocol-name {
|
| 305 | type tapi-common:layer-protocol-name;
|
| 306 | config false;
|
| 307 | description "none";
|
| 308 | }
|
| 309 | uses tapi-common:local-class;
|
| 310 | description "none";
|
| 311 | }
|
| 312 | grouping oam-service {
|
| 313 | list end-point {
|
| 314 | key 'local-id';
|
| 315 | min-elements 2;
|
| 316 | uses oam-service-end-point;
|
| 317 | description "none";
|
| 318 | }
|
| 319 | container meg {
|
| 320 | uses meg-ref;
|
| 321 | config false;
|
| 322 | description "none";
|
| 323 | }
|
| 324 | container oam-profile {
|
| 325 | uses oam-profile-ref;
|
| 326 | description "none";
|
| 327 | }
|
| 328 | uses tapi-common:service-spec;
|
| 329 | uses tapi-common:admin-state-pac;
|
| 330 | uses oam-constraint;
|
| 331 | description "none";
|
| 332 | }
|
| 333 | grouping oam-context {
|
| 334 | list oam-service {
|
| 335 | key 'uuid';
|
| 336 | uses oam-service;
|
| 337 | description "none";
|
| 338 | }
|
| 339 | list meg {
|
| 340 | key 'uuid';
|
| 341 | config false;
|
| 342 | uses meg;
|
| 343 | description "none";
|
| 344 | }
|
| 345 | list oam-job {
|
| 346 | key 'uuid';
|
| 347 | uses oam-job;
|
| 348 | description "none";
|
| 349 | }
|
| 350 | list oam-profile {
|
| 351 | key 'uuid';
|
| 352 | uses oam-profile;
|
| 353 | description "none";
|
| 354 | }
|
| 355 | description "none";
|
| 356 | }
|
| 357 | grouping oam-service-end-point {
|
| 358 | container service-interface-point {
|
| 359 | uses tapi-common:service-interface-point-ref;
|
| 360 | description "none";
|
| 361 | }
|
| 362 | container connectivity-service-end-point {
|
| 363 | uses tapi-connectivity:connectivity-service-end-point-ref;
|
| 364 | description "none";
|
| 365 | }
|
| 366 | container mep {
|
| 367 | uses mep-ref;
|
| 368 | config false;
|
| 369 | description "none";
|
| 370 | }
|
| 371 | container mip {
|
| 372 | uses mip-ref;
|
| 373 | config false;
|
| 374 | description "none";
|
| 375 | }
|
| 376 | leaf layer-protocol-name {
|
| 377 | type tapi-common:layer-protocol-name;
|
| 378 | description "none";
|
| 379 | }
|
| 380 | leaf direction {
|
| 381 | type tapi-common:port-direction;
|
| 382 | description "none";
|
| 383 | }
|
| 384 | leaf mep-identifier {
|
| 385 | type string;
|
| 386 | description "This attribute contains the identifier of the MEP.
|
| 387 | This attribute is empty in case the OSEP relates to the provisioing of an MIP.
|
| 388 | ";
|
| 389 | }
|
| 390 | leaf-list peer-mep-identifier {
|
| 391 | type string;
|
| 392 | description "This attribute models the MI_PeerMEP_ID[i] defined in G.8021 and configured as specified in G.8051. It provides the identifiers of the MEPs which are peer to the subject MEP.
|
| 393 | This attribute is not specified in case the OSEP relates to the provisioing of an MIP.
|
| 394 | In case of P2P, there is only one peer";
|
| 395 | }
|
| 396 | uses tapi-common:local-class;
|
| 397 | uses tapi-common:admin-state-pac;
|
| 398 | description "none";
|
| 399 | }
|
| 400 | grouping mep-mip-list {
|
| 401 | list mip {
|
| 402 | uses mip-ref;
|
| 403 | key 'meg-uuid mip-local-id';
|
| 404 | description "none";
|
| 405 | }
|
| 406 | list mep {
|
| 407 | uses mep-ref;
|
| 408 | key 'meg-uuid mep-local-id';
|
| 409 | description "none";
|
| 410 | }
|
| 411 | description "none";
|
| 412 | }
|
| 413 | grouping oam-constraint {
|
| 414 | leaf layer-protocol-name {
|
| 415 | type tapi-common:layer-protocol-name;
|
| 416 | description "none";
|
| 417 | }
|
| 418 | leaf direction {
|
| 419 | type tapi-common:forwarding-direction;
|
| 420 | description "none";
|
| 421 | }
|
| 422 | leaf meg-level {
|
| 423 | type uint64;
|
| 424 | description "none";
|
| 425 | }
|
| 426 | description "none";
|
| 427 | }
|
| 428 | grouping pm-current-data {
|
| 429 | list pm-history-data {
|
| 430 | key 'local-id';
|
| 431 | config false;
|
| 432 | uses pm-history-data;
|
| 433 | description "in case of 24hr Current Data, at least 1 History Data.
|
| 434 | In case of 15min Current Data, at least 16 History Data.
|
| 435 | In case of <15min, the number of History Data shall be able to cover a span of 4 hours.";
|
| 436 | }
|
| 437 | container granularity-period {
|
| 438 | uses tapi-common:time-period;
|
| 439 | description "none";
|
| 440 | }
|
| 441 | leaf timestamp {
|
| 442 | type tapi-common:date-and-time;
|
| 443 | config false;
|
| 444 | description "This attribute indicates the start of the current monitoring interval.
|
| 445 | The value is bound to the quarter of an hour in case of a 15 minute interval and bound to the hour in case of a 24 hour interval.";
|
| 446 | }
|
| 447 | container elapsed-time {
|
| 448 | uses tapi-common:time-interval;
|
| 449 | description "none";
|
| 450 | }
|
| 451 | leaf suspect-interval-flag {
|
| 452 | type boolean;
|
| 453 | description "This attribute is used to indicate that the performance data for the current period may not be reliable. Some reasons for this to occur are:
|
| 454 | – Suspect data were detected by the actual resource doing data collection.
|
| 455 | – Transition of the administrativeState attribute to/from the 'lock' state.
|
| 456 | – Transition of the operationalState to/from the 'disabled' state.
|
| 457 | – Scheduler setting that inhibits the collection function.
|
| 458 | – The performance counters were reset during the interval.
|
| 459 | – The currentData (or subclass) object instance was created during the monitoring period.";
|
| 460 | }
|
| 461 | uses tapi-common:local-class;
|
| 462 | description "none";
|
| 463 | }
|
| 464 | grouping pm-history-data {
|
| 465 | container granularity-period {
|
| 466 | uses tapi-common:time-period;
|
| 467 | description "none";
|
| 468 | }
|
| 469 | leaf period-end-time {
|
| 470 | type tapi-common:date-and-time;
|
| 471 | description "none";
|
| 472 | }
|
| 473 | leaf suspect-interval-flag {
|
| 474 | type boolean;
|
| 475 | config false;
|
| 476 | description "This attribute indicates that the performance data may not be reliable.";
|
| 477 | }
|
| 478 | uses tapi-common:local-class;
|
| 479 | description "none";
|
| 480 | }
|
| 481 | grouping oam-profile {
|
| 482 | list pm-threshold-data {
|
| 483 | key 'local-id';
|
| 484 | min-elements 1;
|
| 485 | uses pm-threshold-data;
|
| 486 | description "none";
|
| 487 | }
|
| 488 | list pm-bin-data {
|
| 489 | key 'local-id';
|
| 490 | min-elements 1;
|
| 491 | uses pm-bin-data;
|
| 492 | description "none";
|
| 493 | }
|
| 494 | uses tapi-common:global-class;
|
| 495 | description "none";
|
| 496 | }
|
| 497 | grouping pm-threshold-data {
|
| 498 | container granularity-period {
|
| 499 | uses tapi-common:time-period;
|
| 500 | description "none";
|
| 501 | }
|
| 502 | leaf is-transient {
|
| 503 | type boolean;
|
| 504 | description "none";
|
| 505 | }
|
| 506 | uses tapi-common:local-class;
|
| 507 | description "none";
|
| 508 | }
|
| 509 | grouping pm-bin-data {
|
| 510 | container granularity-period {
|
| 511 | uses tapi-common:time-period;
|
| 512 | description "none";
|
| 513 | }
|
| 514 | uses tapi-common:local-class;
|
| 515 | description "none";
|
| 516 | }
|
| 517 |
|
| 518 | /**************************
|
| 519 | * package type-definitions
|
| 520 | **************************/
|
| 521 | identity OAM_JOB_TYPE {
|
| 522 | description "none";
|
| 523 | }
|
| 524 | typedef oam-job-type {
|
| 525 | type identityref {
|
| 526 | base OAM_JOB_TYPE;
|
| 527 | }
|
| 528 | description "none";
|
| 529 | }
|
| 530 |
|
| 531 | /**************************
|
| 532 | * package interfaces
|
| 533 | **************************/
|
| 534 | rpc create-oam-service {
|
| 535 | description "none";
|
| 536 | input {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 537 | list end-point {
|
| 538 | key 'local-id';
|
| 539 | min-elements 2;
|
| 540 | uses oam-service-end-point;
|
| 541 | description "none";
|
| 542 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 543 | container oam-constraint {
|
| 544 | uses oam-constraint;
|
| 545 | description "none";
|
| 546 | }
|
| 547 | leaf state {
|
| 548 | type string;
|
| 549 | description "none";
|
| 550 | }
|
| 551 | }
|
| 552 | output {
|
| 553 | container service {
|
| 554 | uses oam-service;
|
| 555 | description "none";
|
| 556 | }
|
| 557 | }
|
| 558 | }
|
| 559 | rpc delete-oam-service {
|
| 560 | description "none";
|
| 561 | input {
|
| 562 | leaf service-id {
|
| 563 | type string;
|
| 564 | description "none";
|
| 565 | }
|
| 566 | }
|
| 567 | }
|
| 568 | rpc get-oam-service {
|
| 569 | description "none";
|
| 570 | input {
|
| 571 | leaf service-id {
|
| 572 | type string;
|
| 573 | description "none";
|
| 574 | }
|
| 575 | }
|
| 576 | output {
|
| 577 | container service {
|
| 578 | uses oam-service;
|
| 579 | description "none";
|
| 580 | }
|
| 581 | }
|
| 582 | }
|
| 583 | rpc create-oam-job {
|
| 584 | description "none";
|
| 585 | input {
|
| 586 | leaf oam-job-type {
|
| 587 | type oam-job-type;
|
| 588 | description "none";
|
| 589 | }
|
| 590 | list oam-service-end-point {
|
| 591 | key 'local-id';
|
| 592 | min-elements 2;
|
| 593 | uses oam-service-end-point;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 594 | description "none";
|
| 595 | }
|
| 596 | container oam-profile {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 597 | uses oam-profile;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 598 | description "none";
|
| 599 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 600 | leaf state {
|
| 601 | type string;
|
| 602 | description "none";
|
| 603 | }
|
| 604 | leaf schedule {
|
| 605 | type string;
|
| 606 | description "none";
|
| 607 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 608 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 609 | output {
|
| 610 | container oam-job {
|
| 611 | uses oam-job;
|
| 612 | description "none";
|
| 613 | }
|
| 614 | }
|
| 615 | }
|
| 616 | rpc get-oam-job {
|
| 617 | description "none";
|
| 618 | input {
|
| 619 | leaf job-id {
|
| 620 | type string;
|
| 621 | description "none";
|
| 622 | }
|
| 623 | }
|
| 624 | output {
|
| 625 | container oam-job {
|
| 626 | uses oam-job;
|
| 627 | description "none";
|
| 628 | }
|
| 629 | }
|
| 630 | }
|
| 631 | rpc get-oam-service-list {
|
| 632 | description "none";
|
| 633 | output {
|
| 634 | list service {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 635 | key 'uuid';
|
| 636 | uses oam-service;
|
| 637 | description "none";
|
| 638 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 639 | }
|
| 640 | }
|
| 641 | rpc get-meg {
|
| 642 | description "none";
|
| 643 | input {
|
| 644 | leaf service-id {
|
| 645 | type string;
|
| 646 | description "none";
|
| 647 | }
|
| 648 | }
|
| 649 | output {
|
| 650 | container meg {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 651 | uses meg;
|
| 652 | description "none";
|
| 653 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 654 | }
|
| 655 | }
|
| 656 | rpc update-oam-service {
|
| 657 | description "none";
|
| 658 | input {
|
| 659 | leaf service-id {
|
| 660 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 661 | description "none";
|
| 662 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 663 | list end-point {
|
| 664 | key 'local-id';
|
| 665 | uses oam-service-end-point;
|
| 666 | description "none";
|
| 667 | }
|
| 668 | container oam-constraint {
|
| 669 | uses oam-constraint;
|
| 670 | description "none";
|
| 671 | }
|
| 672 | leaf state {
|
| 673 | type string;
|
| 674 | description "none";
|
| 675 | }
|
| 676 | }
|
| 677 | output {
|
| 678 | container service {
|
| 679 | uses oam-service;
|
| 680 | description "none";
|
| 681 | }
|
| 682 | }
|
| 683 | }
|
| 684 | rpc delete-oam-job {
|
| 685 | description "none";
|
| 686 | input {
|
| 687 | leaf job-id {
|
| 688 | type string;
|
| 689 | description "none";
|
| 690 | }
|
| 691 | }
|
| 692 | }
|
| 693 | rpc update-oam-job {
|
| 694 | description "none";
|
| 695 | input {
|
| 696 | leaf job-id {
|
| 697 | type string;
|
| 698 | description "none";
|
| 699 | }
|
| 700 | container oam-profile {
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 701 | uses oam-profile;
|
| 702 | description "none";
|
| 703 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 704 | leaf state {
|
| 705 | type string;
|
| 706 | description "none";
|
| 707 | }
|
| 708 | leaf schedule {
|
| 709 | type string;
|
| 710 | description "none";
|
| 711 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 712 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 713 | output {
|
| 714 | container oam-job {
|
| 715 | uses oam-job;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 716 | description "none";
|
| 717 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 718 | }
|
| 719 | }
|
| 720 | rpc create-oam-service-end-point {
|
| 721 | description "none";
|
| 722 | input {
|
| 723 | leaf service-id {
|
| 724 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 725 | description "none";
|
| 726 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 727 | leaf sip-id {
|
| 728 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 729 | description "none";
|
| 730 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 731 | leaf c-sep-id {
|
| 732 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 733 | description "none";
|
| 734 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 735 | leaf layer {
|
| 736 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 737 | description "none";
|
| 738 | }
|
| 739 | leaf direction {
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 740 | type string;
|
| 741 | description "none";
|
| 742 | }
|
| 743 | leaf state {
|
| 744 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 745 | description "none";
|
| 746 | }
|
| 747 | leaf mep-identifier {
|
| 748 | type string;
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 749 | description "none";
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 750 | }
|
| 751 | leaf-list peer-mep-identifier {
|
| 752 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 753 | description "none";
|
| 754 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 755 | }
|
| 756 | output {
|
| 757 | container end-point {
|
| 758 | uses oam-service-end-point;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 759 | description "none";
|
| 760 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 761 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 762 | }
|
| 763 | rpc delete-oam-service-end-point {
|
| 764 | description "none";
|
| 765 | input {
|
| 766 | leaf service-id {
|
| 767 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 768 | description "none";
|
| 769 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 770 | leaf o-sep-id {
|
| 771 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 772 | description "none";
|
| 773 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 774 | }
|
| 775 | }
|
| 776 | rpc update-oam-service-end-point {
|
| 777 | description "none";
|
| 778 | input {
|
| 779 | leaf service-id {
|
| 780 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 781 | description "none";
|
| 782 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 783 | leaf o-sep-id {
|
| 784 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 785 | description "none";
|
| 786 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 787 | leaf state {
|
| 788 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 789 | description "none";
|
| 790 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 791 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 792 | output {
|
| 793 | container end-point {
|
| 794 | uses oam-service-end-point;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 795 | description "none";
|
| 796 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 797 | }
|
| 798 | }
|
| 799 | rpc get-oam-service-end-point {
|
| 800 | description "none";
|
| 801 | input {
|
| 802 | leaf service-id {
|
| 803 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 804 | description "none";
|
| 805 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 806 | leaf o-sep-id {
|
| 807 | type string;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 808 | description "none";
|
| 809 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 810 | }
|
| 811 | output {
|
| 812 | container end-point {
|
| 813 | uses oam-service-end-point;
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 814 | description "none";
|
| 815 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 816 | }
|
Ai Hamano | 0616390 | 2018-12-06 09:18:20 +0900 | [diff] [blame] | 817 | }
|
hiroki | d8fd786 | 2018-10-09 15:24:24 +0900 | [diff] [blame] | 818 | }
|