blob: 6547a6b8679fd58ad529a108c0f771c7d27c6d54 [file] [log] [blame]
Marc De Leenheerf20c7fb2017-05-05 10:24:41 -07001module org-openroadm-resource {
2 namespace "http://org/openroadm/resource";
3 prefix org-openroadm-resource;
4
5 import org-openroadm-resource-types {
6 prefix org-openroadm-resource-types;
7 }
8
9 organization "Open ROADM MSA";
10 contact
11 "OpenROADM.org";
12 description
13 "YANG definitions of resources.
14
15 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
16 AT&T Intellectual Property. All other rights reserved.
17
18 Redistribution and use in source and binary forms, with or without modification,
19 are permitted provided that the following conditions are met:
20
21 * Redistributions of source code must retain the above copyright notice, this
22 list of conditions and the following disclaimer.
23 * Redistributions in binary form must reproduce the above copyright notice,
24 this list of conditions and the following disclaimer in the documentation and/or
25 other materials provided with the distribution.
26 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
27 contributors may be used to endorse or promote products derived from this software
28 without specific prior written permission.
29
30 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
31 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
34 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
35 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
36 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39 POSSIBILITY OF SUCH DAMAGE";
40
41 revision 2016-10-14 {
42 description
43 "Version 1.2";
44 }
45
46 grouping resource {
47 description
48 "This resource identifier is intended to provide a generic identifer
49 for any resource that can be used without specific knowledge of
50 the resource.";
51 container device {
52 description
53 "Device of the resource, used only when the system using this
54 model report on more than one device. ";
55 uses org-openroadm-resource-types:device-id;
56 }
57 container resource {
58 choice resource {
59 case circuit-pack {
60 uses org-openroadm-resource-types:circuit-pack-name;
61 }
62 case port {
63 container port {
64 uses org-openroadm-resource-types:port-name;
65 }
66 }
67 case connection {
68 uses org-openroadm-resource-types:connection-number {
69 refine connection-number {
70 mandatory true;
71 }
72 }
73 }
74 case physical-link {
75 uses org-openroadm-resource-types:physical-link-name;
76 }
77 case internal-link {
78 uses org-openroadm-resource-types:internal-link-name;
79 }
80 case shelf {
81 uses org-openroadm-resource-types:shelf-name;
82 }
83 case srg {
84 uses org-openroadm-resource-types:srg-number {
85 refine srg-number {
86 mandatory true;
87 }
88 }
89 }
90 case degree {
91 uses org-openroadm-resource-types:degree-number {
92 refine degree-number {
93 mandatory true;
94 }
95 }
96 }
97 case service {
98 uses org-openroadm-resource-types:service-name;
99 }
100 case interface {
101 uses org-openroadm-resource-types:interface-name;
102 }
103 }
104 }
105 container resourceType {
106 uses org-openroadm-resource-types:resource-type;
107 }
108 }
109}