1 module org-openroadm-device-resource-types {
2 namespace "http://org/openroadm/de/device-resource-types";
3 prefix org-openroadm-device-resource-types;
5 organization "Open ROADM MSA";
9 "YANG definitions of resource types.
11 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
12 AT&T Intellectual Property. All other rights reserved.
14 Redistribution and use in source and binary forms, with or without modification,
15 are permitted provided that the following conditions are met:
17 * Redistributions of source code must retain the above copyright notice, this
18 list of conditions and the following disclaimer.
19 * Redistributions in binary form must reproduce the above copyright notice,
20 this list of conditions and the following disclaimer in the documentation and/or
21 other materials provided with the distribution.
22 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
23 contributors may be used to endorse or promote products derived from this software
24 without specific prior written permission.
26 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
27 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
30 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
32 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 POSSIBILITY OF SUCH DAMAGE.";
42 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
45 "Device identifier. Unique within the Controller.";
48 "Node Id. Globally unique identifier for a device.";
50 path "/org-openroadm-device/info/node-id";
57 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
61 "Shelf identifier. Unique within the context of a device.";
63 path "/org-openroadm-device/shelves/shelf-name";
71 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
72 grouping physical-link-name {
73 leaf physical-link-name {
75 "Physical Link identifier. Unique within the context of a device.";
77 path "/org-openroadm-device/physical-link/physical-link-name";
85 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
86 grouping internal-link-name {
87 uses org-openroadm-device:circuit-pack-name;
88 leaf internal-link-name {
90 "Internal Link identifier. Unique within the context of a circuit pack.";
92 path "/org-openroadm-device/internal-link/internal-link-name";
100 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
101 grouping connection-number {
102 leaf connection-number {
104 "Connection identifier. Unique within the context of a device.";
106 path "/org-openroadm-device/connections/connection-number";
112 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
113 grouping this-will-test-ids {
118 container circuit-pack {
119 uses org-openroadm-device:circuit-pack-name;
122 uses org-openroadm-device:port-name;
124 uses internal-link-name;
125 uses physical-link-name;
126 uses connection-number;
127 uses org-openroadm-device:srg-number;
128 uses org-openroadm-device:degree-number;
132 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
133 grouping xponder-device-id {
135 "Xponder identifier. Unique within the Controller.";
138 "Xponder Id. Globally unique identifier for the device";
140 path "/org-openroadm-device/info/node-id";
147 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
148 grouping xponder-number {
149 leaf xponder-number {
151 "Xponder identifier. Unique within the context of a device.";
153 path "/org-openroadm-device/xponders/xponder-number";
160 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
161 grouping xponder-shelf-name {
165 "Shelf identifier. Unique within the context of a device.";
167 path "/org-openroadm-device/xponders[xponder-number=current()/../xponder-number]/shelves/shelf-name";
175 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
176 grouping xponder-circuit-pack-name {
178 leaf circuit-pack-name {
180 "Circuit Pack identifier. Unique within the context of a xponder.";
182 path "/org-openroadm-device/circuit-packs/circuit-pack-name";
189 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
190 grouping xponder-port-name {
191 uses xponder-circuit-pack-name;
194 "Port identifier. Unique within the context of a circuit-pack.";
196 path "/org-openroadm-device/circuit-packs[circuit-pack-name=current()/../circuit-pack-name]/ports/port-name";
203 /* Currently not used; if used later, needs to move to org-openroadm-device.yang so leafref can be resolved.
204 grouping this-will-test-xponder-ids {
205 uses xponder-device-id;
207 uses xponder-shelf-name;
209 container circuit-pack {
210 uses xponder-circuit-pack-name;
213 uses xponder-port-name;