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 2016-10-14;
10 organization "Open ROADM MSA";
14 "YANG definitions of resources.
16 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
17 AT&T Intellectual Property. All other rights reserved.
19 Redistribution and use in source and binary forms, with or without modification,
20 are permitted provided that the following conditions are met:
22 * Redistributions of source code must retain the above copyright notice, this
23 list of conditions and the following disclaimer.
24 * Redistributions in binary form must reproduce the above copyright notice,
25 this list of conditions and the following disclaimer in the documentation and/or
26 other materials provided with the distribution.
27 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
28 contributors may be used to endorse or promote products derived from this software
29 without specific prior written permission.
31 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
32 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
34 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
35 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
36 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
37 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
38 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 POSSIBILITY OF SUCH DAMAGE";
49 "This resource identifier is intended to provide a generic identifer
50 for any resource that can be used without specific knowledge of
54 "Device of the resource, used only when the system using this
55 model report on more than one device. ";
56 uses org-openroadm-resource-types:device-id;
61 uses org-openroadm-resource-types:circuit-pack-name;
65 uses org-openroadm-resource-types:port-name;
69 uses org-openroadm-resource-types:connection-number {
70 refine connection-number {
76 uses org-openroadm-resource-types:physical-link-name;
79 uses org-openroadm-resource-types:internal-link-name;
82 uses org-openroadm-resource-types:shelf-name;
85 uses org-openroadm-resource-types:srg-number {
92 uses org-openroadm-resource-types:degree-number {
93 refine degree-number {
99 uses org-openroadm-resource-types:service-name;
102 uses org-openroadm-resource-types:interface-name;
106 container resourceType {
107 uses org-openroadm-resource-types:resource-type;