1 module org-openroadm-resource {
2 namespace "http://org/openroadm/resource";
3 prefix org-openroadm-resource;
5 import org-openroadm-resource-types {
6 prefix org-openroadm-resource-types;
7 revision-date 2018-10-19;
15 "YANG definitions of resources.
17 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
18 AT&T Intellectual Property. All other rights reserved.
20 Redistribution and use in source and binary forms, with or without modification,
21 are permitted provided that the following conditions are met:
23 * Redistributions of source code must retain the above copyright notice, this
24 list of conditions and the following disclaimer.
25 * Redistributions in binary form must reproduce the above copyright notice,
26 this list of conditions and the following disclaimer in the documentation and/or
27 other materials provided with the distribution.
28 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
29 contributors may be used to endorse or promote products derived from this software
30 without specific prior written permission.
32 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
33 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
34 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
35 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
36 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
37 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
38 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
39 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 POSSIBILITY OF SUCH DAMAGE";
57 "Version 2.0.1 - added revision-date to imports";
70 "This resource identifier is intended to provide a generic identifer
71 for any resource that can be used without specific knowledge of
75 "Device of the resource, used only when the system using this
76 model report on more than one device. ";
77 uses org-openroadm-resource-types:device-id;
82 uses org-openroadm-resource-types:circuit-pack-name;
86 uses org-openroadm-resource-types:port-name;
90 uses org-openroadm-resource-types:connection-name {
91 refine "connection-name" {
97 uses org-openroadm-resource-types:physical-link-name;
100 uses org-openroadm-resource-types:internal-link-name;
103 uses org-openroadm-resource-types:shelf-name;
106 uses org-openroadm-resource-types:srg-number {
107 refine "srg-number" {
113 uses org-openroadm-resource-types:degree-number {
114 refine "degree-number" {
120 uses org-openroadm-resource-types:service-name;
123 uses org-openroadm-resource-types:interface-name;
126 uses org-openroadm-resource-types:odu-sncp-pg-name;
129 uses org-openroadm-resource-types:other-resource-id;
132 uses org-openroadm-resource-types:device-id {
138 case line-amplifier {
139 uses org-openroadm-resource-types:amp-number;
142 uses org-openroadm-resource-types:xpdr-number;
144 case versioned-service {
145 uses org-openroadm-resource-types:versioned-service-name;
148 uses org-openroadm-resource-types:temp-service-name;
152 container resourceType {
153 uses org-openroadm-resource-types:resource-type;