blob: 5410ba455c06e8c0735124328483fa455555af78 [file] [log] [blame]
hirokid8fd7862018-10-09 15:24:24 +09001module 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
hiroki96ab3c22018-12-11 14:10:52 -080022 - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.
23 - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]
24 <https://github.com/OpenNetworkingFoundation/EagleUmlYang>
25 and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]
26 <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>
27 - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.
28 As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.
29 - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.
30 The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.
31 YANG models included in this release may not be backward compatible with previous TAPI releases.
hirokid8fd7862018-10-09 15:24:24 +090032 Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
33 License: This module is distributed under the Apache License 2.0";
hiroki96ab3c22018-12-11 14:10:52 -080034 revision 2018-12-10 {
35 description "ONF Transport API version 2.1.1.
36 Changes included in this TAPI release (v2.1.1) are listed in
37 <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";
38 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
39 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
40 }
hirokid8fd7862018-10-09 15:24:24 +090041 revision 2018-10-16 {
42 description "ONF Transport API version 2.1.0.
hiroki96ab3c22018-12-11 14:10:52 -080043 Changes included in this TAPI release (v2.1.0) are listed in
44 <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";
Ai Hamano06163902018-12-06 09:18:20 +090045 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
hirokid8fd7862018-10-09 15:24:24 +090046 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
47 }
48 revision 2018-03-07 {
Ai Hamano06163902018-12-06 09:18:20 +090049 description "ONF Transport API version 2.0.2
50 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
hirokid8fd7862018-10-09 15:24:24 +090051 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";
Ai Hamano06163902018-12-06 09:18:20 +090052 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
hirokid8fd7862018-10-09 15:24:24 +090053 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
54 }
55 revision 2018-02-16 {
Ai Hamano06163902018-12-06 09:18:20 +090056 description "ONF Transport API version 2.0.1
57 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
hirokid8fd7862018-10-09 15:24:24 +090058 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";
Ai Hamano06163902018-12-06 09:18:20 +090059 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
hirokid8fd7862018-10-09 15:24:24 +090060 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";
61 }
62 revision 2018-01-02 {
Ai Hamano06163902018-12-06 09:18:20 +090063 description "ONF Transport API version 2.0.0
64 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
hirokid8fd7862018-10-09 15:24:24 +090065 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";
Ai Hamano06163902018-12-06 09:18:20 +090066 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
hirokid8fd7862018-10-09 15:24:24 +090067 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";
68 }
69 augment "/tapi-common:context" {
70 container oam-context {
71 uses oam-context;
72 description "Augments the base TAPI Context with OamService information";
73 }
74 description "Augments the base TAPI Context with OamService information";
75 }
76 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 Hamano06163902018-12-06 09:18:20 +090077 container mep-mip-list {
hirokid8fd7862018-10-09 15:24:24 +090078 uses mep-mip-list;
79 description "none";
80 }
81 description "none";
82 }
Ai Hamano06163902018-12-06 09:18:20 +090083
84 /**************************
hirokid8fd7862018-10-09 15:24:24 +090085 * definitions of references
Ai Hamano06163902018-12-06 09:18:20 +090086 **************************/
hirokid8fd7862018-10-09 15:24:24 +090087 grouping oam-service-ref {
88 leaf oam-service-uuid {
89 type leafref {
90 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:uuid';
91 }
92 description "none";
93 }
94 description "none";
95 }
hirokid8fd7862018-10-09 15:24:24 +090096 grouping oam-service-end-point-ref {
Ai Hamano06163902018-12-06 09:18:20 +090097 uses oam-service-ref;
98 leaf oam-service-end-point-local-id {
99 type leafref {
100 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-service/tapi-oam:end-point/tapi-oam:local-id';
101 }
102 description "none";
103 }
104 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900105 }
hirokid8fd7862018-10-09 15:24:24 +0900106 grouping meg-ref {
107 leaf meg-uuid {
108 type leafref {
109 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:uuid';
110 }
111 description "none";
112 }
113 description "none";
114 }
hirokid8fd7862018-10-09 15:24:24 +0900115 grouping maintenance-entity-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900116 uses meg-ref;
117 leaf maintenance-entity-local-id {
118 type leafref {
119 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:me/tapi-oam:local-id';
120 }
121 description "none";
122 }
123 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900124 }
hirokid8fd7862018-10-09 15:24:24 +0900125 grouping mep-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900126 uses meg-ref;
127 leaf mep-local-id {
128 type leafref {
129 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep/tapi-oam:local-id';
130 }
131 description "none";
132 }
133 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900134 }
hirokid8fd7862018-10-09 15:24:24 +0900135 grouping mip-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900136 uses meg-ref;
137 leaf mip-local-id {
138 type leafref {
139 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip/tapi-oam:local-id';
140 }
141 description "none";
142 }
143 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900144 }
hirokid8fd7862018-10-09 15:24:24 +0900145 grouping oam-job-ref {
146 leaf oam-job-uuid {
147 type leafref {
148 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:uuid';
149 }
150 description "none";
151 }
152 description "none";
153 }
hirokid8fd7862018-10-09 15:24:24 +0900154 grouping pm-current-data-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900155 uses oam-job-ref;
156 leaf pm-current-data-local-id {
157 type leafref {
158 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-job/tapi-oam:pm-current-data/tapi-oam:local-id';
159 }
160 description "none";
161 }
162 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900163 }
hirokid8fd7862018-10-09 15:24:24 +0900164 grouping pm-history-data-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900165 uses pm-current-data-ref;
166 leaf pm-history-data-local-id {
167 type leafref {
168 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';
169 }
170 description "none";
171 }
172 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900173 }
hirokid8fd7862018-10-09 15:24:24 +0900174 grouping oam-profile-ref {
175 leaf oam-profile-uuid {
176 type leafref {
177 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:uuid';
178 }
179 description "none";
180 }
181 description "none";
182 }
hirokid8fd7862018-10-09 15:24:24 +0900183 grouping pm-threshold-data-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900184 uses oam-profile-ref;
185 leaf pm-threshold-data-local-id {
186 type leafref {
187 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-threshold-data/tapi-oam:local-id';
188 }
189 description "none";
190 }
191 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900192 }
hirokid8fd7862018-10-09 15:24:24 +0900193 grouping pm-bin-data-ref {
Ai Hamano06163902018-12-06 09:18:20 +0900194 uses oam-profile-ref;
195 leaf pm-bin-data-local-id {
196 type leafref {
197 path '/tapi-common:context/tapi-oam:oam-context/tapi-oam:oam-profile/tapi-oam:pm-bin-data/tapi-oam:local-id';
198 }
199 description "none";
200 }
201 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900202 }
Ai Hamano06163902018-12-06 09:18:20 +0900203
204 /**************************
hirokid8fd7862018-10-09 15:24:24 +0900205 * package object-classes
Ai Hamano06163902018-12-06 09:18:20 +0900206 **************************/
207 grouping mep {
208 leaf layer-protocol-name {
209 type tapi-common:layer-protocol-name;
210 config false;
hirokid8fd7862018-10-09 15:24:24 +0900211 description "none";
212 }
Ai Hamano06163902018-12-06 09:18:20 +0900213 leaf direction {
214 type tapi-common:termination-direction;
215 config false;
hirokid8fd7862018-10-09 15:24:24 +0900216 description "none";
217 }
Ai Hamano06163902018-12-06 09:18:20 +0900218 leaf mep-identifier {
219 type string;
220 config false;
hirokid8fd7862018-10-09 15:24:24 +0900221 description "none";
222 }
Ai Hamano06163902018-12-06 09:18:20 +0900223 leaf-list peer-mep-identifier {
224 type string;
225 config false;
226 min-elements 1;
hirokid8fd7862018-10-09 15:24:24 +0900227 description "none";
228 }
Ai Hamano06163902018-12-06 09:18:20 +0900229 uses tapi-common:local-class;
230 uses tapi-common:operational-state-pac;
231 description "none";
232 }
233 grouping oam-job {
234 list oam-service-end-point {
235 uses oam-service-end-point-ref;
236 key 'oam-service-uuid oam-service-end-point-local-id';
237 min-elements 1;
238 description "none";
239 }
240 container oam-profile {
241 uses oam-profile-ref;
242 description "none";
243 }
244 list pm-current-data {
245 key 'local-id';
246 config false;
247 uses pm-current-data;
248 description "Granularity period of the CurrentData identifies the specific CurrentData instance in the scope of this OamJob.
249 For example, typically at least
250 one 15min and
251 one 24hr;
252 optionally one additional configurable (< 15min)";
253 }
254 leaf oam-job-type {
255 type oam-job-type;
256 description "none";
257 }
258 container schedule {
259 uses tapi-common:time-range;
260 description "none";
261 }
262 leaf creation-time {
263 type tapi-common:date-and-time;
264 config false;
265 description "none";
266 }
267 uses tapi-common:global-class;
268 uses tapi-common:admin-state-pac;
269 description "none";
270 }
271 grouping meg {
272 list mep {
273 key 'local-id';
274 config false;
275 uses mep;
276 description "1. ME may have 0 MEPs (case of transit domains where at least 1 MIP is present)
277 2. ME may have 1 MEP (case of edge domaind, where the peer MEP is ouside the managed domain)
278 3. ME may have 2 MEPs";
279 }
280 list mip {
281 key 'local-id';
282 config false;
283 uses mip;
284 description "ME may 0, 1, or more MIPs";
285 }
286 leaf layer-protocol-name {
287 type tapi-common:layer-protocol-name;
288 config false;
289 description "none";
290 }
291 leaf direction {
292 type tapi-common:forwarding-direction;
293 config false;
294 description "none";
295 }
296 leaf meg-level {
297 type uint64;
298 config false;
299 description "none";
300 }
301 leaf meg-identifier {
302 type string;
303 config false;
304 description "none";
305 }
306 uses tapi-common:resource-spec;
307 uses tapi-common:operational-state-pac;
308 description "none";
309 }
310 grouping mip {
311 leaf layer-protocol-name {
312 type tapi-common:layer-protocol-name;
313 config false;
314 description "none";
315 }
316 uses tapi-common:local-class;
317 description "none";
318 }
319 grouping oam-service {
320 list end-point {
321 key 'local-id';
322 min-elements 2;
323 uses oam-service-end-point;
324 description "none";
325 }
326 container meg {
327 uses meg-ref;
328 config false;
329 description "none";
330 }
331 container oam-profile {
332 uses oam-profile-ref;
333 description "none";
334 }
335 uses tapi-common:service-spec;
336 uses tapi-common:admin-state-pac;
337 uses oam-constraint;
338 description "none";
339 }
340 grouping oam-context {
341 list oam-service {
342 key 'uuid';
343 uses oam-service;
344 description "none";
345 }
346 list meg {
347 key 'uuid';
348 config false;
349 uses meg;
350 description "none";
351 }
352 list oam-job {
353 key 'uuid';
354 uses oam-job;
355 description "none";
356 }
357 list oam-profile {
358 key 'uuid';
359 uses oam-profile;
360 description "none";
361 }
362 description "none";
363 }
364 grouping oam-service-end-point {
365 container service-interface-point {
366 uses tapi-common:service-interface-point-ref;
367 description "none";
368 }
369 container connectivity-service-end-point {
370 uses tapi-connectivity:connectivity-service-end-point-ref;
371 description "none";
372 }
373 container mep {
374 uses mep-ref;
375 config false;
376 description "none";
377 }
378 container mip {
379 uses mip-ref;
380 config false;
381 description "none";
382 }
383 leaf layer-protocol-name {
384 type tapi-common:layer-protocol-name;
385 description "none";
386 }
387 leaf direction {
388 type tapi-common:port-direction;
389 description "none";
390 }
391 leaf mep-identifier {
392 type string;
393 description "This attribute contains the identifier of the MEP.
394 This attribute is empty in case the OSEP relates to the provisioing of an MIP.
395 ";
396 }
397 leaf-list peer-mep-identifier {
398 type string;
399 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.
400 This attribute is not specified in case the OSEP relates to the provisioing of an MIP.
401 In case of P2P, there is only one peer";
402 }
403 uses tapi-common:local-class;
404 uses tapi-common:admin-state-pac;
405 description "none";
406 }
407 grouping mep-mip-list {
408 list mip {
409 uses mip-ref;
410 key 'meg-uuid mip-local-id';
411 description "none";
412 }
413 list mep {
414 uses mep-ref;
415 key 'meg-uuid mep-local-id';
416 description "none";
417 }
418 description "none";
419 }
420 grouping oam-constraint {
421 leaf layer-protocol-name {
422 type tapi-common:layer-protocol-name;
423 description "none";
424 }
425 leaf direction {
426 type tapi-common:forwarding-direction;
427 description "none";
428 }
429 leaf meg-level {
430 type uint64;
431 description "none";
432 }
433 description "none";
434 }
435 grouping pm-current-data {
436 list pm-history-data {
437 key 'local-id';
438 config false;
439 uses pm-history-data;
440 description "in case of 24hr Current Data, at least 1 History Data.
441 In case of 15min Current Data, at least 16 History Data.
442 In case of <15min, the number of History Data shall be able to cover a span of 4 hours.";
443 }
444 container granularity-period {
445 uses tapi-common:time-period;
446 description "none";
447 }
448 leaf timestamp {
449 type tapi-common:date-and-time;
450 config false;
451 description "This attribute indicates the start of the current monitoring interval.
452 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.";
453 }
454 container elapsed-time {
455 uses tapi-common:time-interval;
456 description "none";
457 }
458 leaf suspect-interval-flag {
459 type boolean;
460 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:
461 – Suspect data were detected by the actual resource doing data collection.
462 – Transition of the administrativeState attribute to/from the 'lock' state.
463 – Transition of the operationalState to/from the 'disabled' state.
464 – Scheduler setting that inhibits the collection function.
465 – The performance counters were reset during the interval.
466 – The currentData (or subclass) object instance was created during the monitoring period.";
467 }
468 uses tapi-common:local-class;
469 description "none";
470 }
471 grouping pm-history-data {
472 container granularity-period {
473 uses tapi-common:time-period;
474 description "none";
475 }
476 leaf period-end-time {
477 type tapi-common:date-and-time;
478 description "none";
479 }
480 leaf suspect-interval-flag {
481 type boolean;
482 config false;
483 description "This attribute indicates that the performance data may not be reliable.";
484 }
485 uses tapi-common:local-class;
486 description "none";
487 }
488 grouping oam-profile {
489 list pm-threshold-data {
490 key 'local-id';
491 min-elements 1;
492 uses pm-threshold-data;
493 description "none";
494 }
495 list pm-bin-data {
496 key 'local-id';
497 min-elements 1;
498 uses pm-bin-data;
499 description "none";
500 }
501 uses tapi-common:global-class;
502 description "none";
503 }
504 grouping pm-threshold-data {
505 container granularity-period {
506 uses tapi-common:time-period;
507 description "none";
508 }
509 leaf is-transient {
510 type boolean;
511 description "none";
512 }
513 uses tapi-common:local-class;
514 description "none";
515 }
516 grouping pm-bin-data {
517 container granularity-period {
518 uses tapi-common:time-period;
519 description "none";
520 }
521 uses tapi-common:local-class;
522 description "none";
523 }
524
525 /**************************
526 * package type-definitions
527 **************************/
528 identity OAM_JOB_TYPE {
529 description "none";
530 }
531 typedef oam-job-type {
532 type identityref {
533 base OAM_JOB_TYPE;
534 }
535 description "none";
536 }
537
538 /**************************
539 * package interfaces
540 **************************/
541 rpc create-oam-service {
542 description "none";
543 input {
hirokid8fd7862018-10-09 15:24:24 +0900544 list end-point {
545 key 'local-id';
546 min-elements 2;
547 uses oam-service-end-point;
548 description "none";
549 }
Ai Hamano06163902018-12-06 09:18:20 +0900550 container oam-constraint {
551 uses oam-constraint;
552 description "none";
553 }
554 leaf state {
555 type string;
556 description "none";
557 }
558 }
559 output {
560 container service {
561 uses oam-service;
562 description "none";
563 }
564 }
565 }
566 rpc delete-oam-service {
567 description "none";
568 input {
569 leaf service-id {
570 type string;
571 description "none";
572 }
573 }
574 }
575 rpc get-oam-service {
576 description "none";
577 input {
578 leaf service-id {
579 type string;
580 description "none";
581 }
582 }
583 output {
584 container service {
585 uses oam-service;
586 description "none";
587 }
588 }
589 }
590 rpc create-oam-job {
591 description "none";
592 input {
593 leaf oam-job-type {
594 type oam-job-type;
595 description "none";
596 }
597 list oam-service-end-point {
598 key 'local-id';
599 min-elements 2;
600 uses oam-service-end-point;
hirokid8fd7862018-10-09 15:24:24 +0900601 description "none";
602 }
603 container oam-profile {
Ai Hamano06163902018-12-06 09:18:20 +0900604 uses oam-profile;
hirokid8fd7862018-10-09 15:24:24 +0900605 description "none";
606 }
Ai Hamano06163902018-12-06 09:18:20 +0900607 leaf state {
608 type string;
609 description "none";
610 }
611 leaf schedule {
612 type string;
613 description "none";
614 }
hirokid8fd7862018-10-09 15:24:24 +0900615 }
Ai Hamano06163902018-12-06 09:18:20 +0900616 output {
617 container oam-job {
618 uses oam-job;
619 description "none";
620 }
621 }
622 }
623 rpc get-oam-job {
624 description "none";
625 input {
626 leaf job-id {
627 type string;
628 description "none";
629 }
630 }
631 output {
632 container oam-job {
633 uses oam-job;
634 description "none";
635 }
636 }
637 }
638 rpc get-oam-service-list {
639 description "none";
640 output {
641 list service {
hirokid8fd7862018-10-09 15:24:24 +0900642 key 'uuid';
643 uses oam-service;
644 description "none";
645 }
Ai Hamano06163902018-12-06 09:18:20 +0900646 }
647 }
648 rpc get-meg {
649 description "none";
650 input {
651 leaf service-id {
652 type string;
653 description "none";
654 }
655 }
656 output {
657 container meg {
hirokid8fd7862018-10-09 15:24:24 +0900658 uses meg;
659 description "none";
660 }
Ai Hamano06163902018-12-06 09:18:20 +0900661 }
662 }
663 rpc update-oam-service {
664 description "none";
665 input {
666 leaf service-id {
667 type string;
hirokid8fd7862018-10-09 15:24:24 +0900668 description "none";
669 }
Ai Hamano06163902018-12-06 09:18:20 +0900670 list end-point {
671 key 'local-id';
672 uses oam-service-end-point;
673 description "none";
674 }
675 container oam-constraint {
676 uses oam-constraint;
677 description "none";
678 }
679 leaf state {
680 type string;
681 description "none";
682 }
683 }
684 output {
685 container service {
686 uses oam-service;
687 description "none";
688 }
689 }
690 }
691 rpc delete-oam-job {
692 description "none";
693 input {
694 leaf job-id {
695 type string;
696 description "none";
697 }
698 }
699 }
700 rpc update-oam-job {
701 description "none";
702 input {
703 leaf job-id {
704 type string;
705 description "none";
706 }
707 container oam-profile {
hirokid8fd7862018-10-09 15:24:24 +0900708 uses oam-profile;
709 description "none";
710 }
Ai Hamano06163902018-12-06 09:18:20 +0900711 leaf state {
712 type string;
713 description "none";
714 }
715 leaf schedule {
716 type string;
717 description "none";
718 }
hirokid8fd7862018-10-09 15:24:24 +0900719 }
Ai Hamano06163902018-12-06 09:18:20 +0900720 output {
721 container oam-job {
722 uses oam-job;
hirokid8fd7862018-10-09 15:24:24 +0900723 description "none";
724 }
Ai Hamano06163902018-12-06 09:18:20 +0900725 }
726 }
727 rpc create-oam-service-end-point {
728 description "none";
729 input {
730 leaf service-id {
731 type string;
hirokid8fd7862018-10-09 15:24:24 +0900732 description "none";
733 }
Ai Hamano06163902018-12-06 09:18:20 +0900734 leaf sip-id {
735 type string;
hirokid8fd7862018-10-09 15:24:24 +0900736 description "none";
737 }
Ai Hamano06163902018-12-06 09:18:20 +0900738 leaf c-sep-id {
739 type string;
hirokid8fd7862018-10-09 15:24:24 +0900740 description "none";
741 }
Ai Hamano06163902018-12-06 09:18:20 +0900742 leaf layer {
743 type string;
hirokid8fd7862018-10-09 15:24:24 +0900744 description "none";
745 }
746 leaf direction {
Ai Hamano06163902018-12-06 09:18:20 +0900747 type string;
748 description "none";
749 }
750 leaf state {
751 type string;
hirokid8fd7862018-10-09 15:24:24 +0900752 description "none";
753 }
754 leaf mep-identifier {
755 type string;
Ai Hamano06163902018-12-06 09:18:20 +0900756 description "none";
hirokid8fd7862018-10-09 15:24:24 +0900757 }
758 leaf-list peer-mep-identifier {
759 type string;
hirokid8fd7862018-10-09 15:24:24 +0900760 description "none";
761 }
Ai Hamano06163902018-12-06 09:18:20 +0900762 }
763 output {
764 container end-point {
765 uses oam-service-end-point;
hirokid8fd7862018-10-09 15:24:24 +0900766 description "none";
767 }
hirokid8fd7862018-10-09 15:24:24 +0900768 }
Ai Hamano06163902018-12-06 09:18:20 +0900769 }
770 rpc delete-oam-service-end-point {
771 description "none";
772 input {
773 leaf service-id {
774 type string;
hirokid8fd7862018-10-09 15:24:24 +0900775 description "none";
776 }
Ai Hamano06163902018-12-06 09:18:20 +0900777 leaf o-sep-id {
778 type string;
hirokid8fd7862018-10-09 15:24:24 +0900779 description "none";
780 }
Ai Hamano06163902018-12-06 09:18:20 +0900781 }
782 }
783 rpc update-oam-service-end-point {
784 description "none";
785 input {
786 leaf service-id {
787 type string;
hirokid8fd7862018-10-09 15:24:24 +0900788 description "none";
789 }
Ai Hamano06163902018-12-06 09:18:20 +0900790 leaf o-sep-id {
791 type string;
hirokid8fd7862018-10-09 15:24:24 +0900792 description "none";
793 }
Ai Hamano06163902018-12-06 09:18:20 +0900794 leaf state {
795 type string;
hirokid8fd7862018-10-09 15:24:24 +0900796 description "none";
797 }
hirokid8fd7862018-10-09 15:24:24 +0900798 }
Ai Hamano06163902018-12-06 09:18:20 +0900799 output {
800 container end-point {
801 uses oam-service-end-point;
hirokid8fd7862018-10-09 15:24:24 +0900802 description "none";
803 }
Ai Hamano06163902018-12-06 09:18:20 +0900804 }
805 }
806 rpc get-oam-service-end-point {
807 description "none";
808 input {
809 leaf service-id {
810 type string;
hirokid8fd7862018-10-09 15:24:24 +0900811 description "none";
812 }
Ai Hamano06163902018-12-06 09:18:20 +0900813 leaf o-sep-id {
814 type string;
hirokid8fd7862018-10-09 15:24:24 +0900815 description "none";
816 }
Ai Hamano06163902018-12-06 09:18:20 +0900817 }
818 output {
819 container end-point {
820 uses oam-service-end-point;
hirokid8fd7862018-10-09 15:24:24 +0900821 description "none";
822 }
hirokid8fd7862018-10-09 15:24:24 +0900823 }
Ai Hamano06163902018-12-06 09:18:20 +0900824 }
hirokid8fd7862018-10-09 15:24:24 +0900825}