blob: 66e5a124c2cb467243c13b3f51b905b9355513a5 [file] [log] [blame]
Marc De Leenheerf20c7fb2017-05-05 10:24:41 -07001module org-openroadm-srg {
2 namespace "http://org/openroadm/srg";
3 prefix org-openroadm-srg;
4
5 organization
6 "OPEN ROADM MSA";
7 contact
8 "OpenROADM.org.";
9 description
10 "YANG definitions for an Add/Drop group in Network Model
11
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 AT&T Intellectual Property. All other rights reserved.
14
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
17
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation and/or
22 other materials provided with the distribution.
23 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
24 contributors may be used to endorse or promote products derived from this software
25 without specific prior written permission.
26
27 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
28 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
31 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
33 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE.";
37
38 revision 2016-10-14 {
39 description
40 "Version 1.2";
41 }
42
43 grouping shared-risk-group {
44 list srgs {
45 key "srg-number";
46 leaf srg-number {
47 type uint16;
48 description
49 "Identifier for each SRG";
50 }
51 leaf max-pp {
52 type uint32;
53 description
54 "Maximum number of add/drop port pairs in an SRG";
55 }
56 leaf-list available-wavelengths {
57 type uint32;
58 description
59 "List of available wavelengths that are supported
60 by the srg";
61 }
62 leaf wavelength-duplication {
63 type enumeration {
64 enum "one-per-srg" {
65 value 1;
66 }
67 enum "one-per-degree" {
68 value 2;
69 }
70 }
71 description
72 "One per srg is applied to C/D add/drop group
73 one per degree is applied to C/D/C add drop group";
74 }
75 container cp-tx {
76 leaf-list pp-number {
77 type uint32;
78 description
79 "The port pair # used for a tail or assigned by PCE to a service/circuit ";
80 }
81 }
82 container cp-rx {
83 leaf-list pp-number {
84 type uint32;
85 description
86 "The port pair # used for a tail or assigned by PCE to a service/circuit ";
87 }
88 }
89 list port-pair {
90 key "pp-number";
91 leaf pp-number {
92 type uint16;
93 description
94 "The port pair # used for tail or assigned by PCE to a service/circuit";
95 }
96 leaf wavelength-number {
97 type uint32;
98 }
99 }
100 }
101 }
102}