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