blob: 100a443c90c4c5939a961e6e7bd00236cb330f69 [file] [log] [blame]
Marc De Leenheerf20c7fb2017-05-05 10:24:41 -07001module org-openroadm-physical-types {
2 namespace "http://org/openroadm/physical/types";
3 prefix org-openroadm-physical-types;
4
5 import org-openroadm-common-types {
6 prefix org-openroadm-common-types;
7 }
8 import ietf-yang-types {
9 prefix yang;
10 }
11
12 organization "Open ROADM MSA";
13 contact
14 "OpenROADM.org";
15 description
16 "YANG definitions of physical types.
17
18 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
19 AT&T Intellectual Property. All other rights reserved.
20
21 Redistribution and use in source and binary forms, with or without modification,
22 are permitted provided that the following conditions are met:
23
24 * Redistributions of source code must retain the above copyright notice, this
25 list of conditions and the following disclaimer.
26 * Redistributions in binary form must reproduce the above copyright notice,
27 this list of conditions and the following disclaimer in the documentation and/or
28 other materials provided with the distribution.
29 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
30 contributors may be used to endorse or promote products derived from this software
31 without specific prior written permission.
32
33 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
34 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
36 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
37 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
38 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
39 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 POSSIBILITY OF SUCH DAMAGE.";
43
44 revision 2016-10-14 {
45 description
46 "Version 1.2";
47 }
48
49 grouping node-info {
50 description
51 "Physical inventory data used by the node";
52 leaf vendor {
53 description
54 "Vendor of the equipment";
55 type string;
56 config false;
57 mandatory true;
58 }
59 leaf model {
60 type string;
61 description
62 "Physical resource model information.";
63 config false;
64 mandatory true;
65 }
66 leaf serial-id {
67 description
68 "Product Code for this physical resource";
69 type string;
70 config false;
71 mandatory true;
72 }
73 }
74
75 grouping common-info {
76 description
77 "Physical inventory data used by all other entities";
78 uses node-info;
79 leaf type {
80 description
81 "The specific type of this physical resource - ie the type of
82 shelf, type of circuit-pack, etc.";
83 type string;
84 config false;
85 }
86 leaf product-code {
87 description
88 "Product Code for this physical resource";
89 type string;
90 config false;
91 }
92 leaf manufacture-date {
93 description
94 "Manufactor date of physical resource";
95 type yang:date-and-time;
96 config false;
97 }
98 leaf clei {
99 description
100 "CLEI for this physical resource";
101 type string;
102 config false;
103 }
104 leaf hardware-version {
105 description
106 "The version of the hardware.";
107 type string;
108 config false;
109 }
110 leaf operational-state {
111 description
112 "Operational state of the physical resource";
113 type org-openroadm-common-types:state;
114 config false;
115 }
116 }
117}