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