blob: 14e6b69930f0702f7a2c6d6d6896e2852eb003da [file] [log] [blame]
Elia Battiston4750d3c2022-07-14 13:24:56 +00001submodule bbf-xpon-wavelength-profile-body {
2 yang-version 1.1;
3 belongs-to bbf-xpon {
4 prefix bbf-xpon;
5 }
6
7 import bbf-yang-types {
8 prefix bbf-yang;
9 }
10 include bbf-xpon-base;
11
12 organization
13 "Broadband Forum <https://www.broadband-forum.org>
14 Fiber Access Networks Work Area";
15 contact
16 "Comments or questions about this Broadband Forum YANG module
17 should be directed to <mailto:help@broadband-forum.org>.
18
19 Editor: Joey Boyd, ADTRAN
20
21 Editor: Samuel Chen, Broadcom
22
23 Editor: Robert Peschi, Nokia
24
25 WA Director: Marta Seda, Calix
26
27 WA Director: Lin Wei, Huawei";
28 description
29 "This submodule contains a collection of YANG definitions for
30 managing wavelength profiles.
31
32 Copyright (c) 2018, Broadband Forum
33
34 Redistribution and use in source and binary forms, with or
35 without modification, are permitted provided that the following
36 conditions are met:
37
38 1. Redistributions of source code must retain the above copyright
39 notice, this list of conditions and the following disclaimer.
40
41 2. Redistributions in binary form must reproduce the above
42 copyright notice, this list of conditions and the following
43 disclaimer in the documentation and/or other materials
44 provided with the distribution.
45
46 3. Neither the name of the copyright holder nor the names of its
47 contributors may be used to endorse or promote products
48 derived from this software without specific prior written
49 permission.
50
51 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
52 CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,
53 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
54 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
55 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
56 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
57 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
58 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
59 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
60 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
61 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
62 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
63 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64
65 The above license is used as a license under copyright only.
66 Please reference the Forum IPR Policy for patent licensing terms
67 <https://www.broadband-forum.org/ipr-policy>.
68
69 Any moral rights which are necessary to exercise under the above
70 license grant are also deemed granted under this license.
71
72 This version of this YANG module is part of TR-385; see
73 the TR itself for full legal notices.";
74
75 revision 2019-02-25 {
76 description
77 "Initial revision.
78 * Approval Date: 2019-02-25.
79 * Publication Date: 2019-02-25.";
80 reference
81 "TR-385: ITU-T PON YANG Modules
82 <https://www.broadband-forum.org/technical/download/
83 TR-385.pdf>";
84 }
85
86 typedef wavelength-prof-ref {
87 type leafref {
88 path '/bbf-xpon:xpon/bbf-xpon:wavelength-profiles/bbf-xpon:'
89 + 'wavelength-profile/bbf-xpon:name';
90 }
91 description
92 "A reference to a wavelength profile.";
93 }
94
95 augment '/bbf-xpon:xpon' {
96 description
97 "Augment system level xPON configuration with wavelength
98 profile configuration.";
99 container wavelength-profiles {
100 description
101 "Wavelength profile configuration.";
102 uses wavelength-profile-data;
103 }
104 }
105
106 grouping wavelength-profile-data {
107 description
108 "All config data for wavelength profile.";
109 list wavelength-profile {
110 key "name";
111 description
112 "The list of wavelength profiles.";
113 leaf name {
114 type bbf-yang:string-ascii64;
115 description
116 "Wavelength profile name.";
117 }
118 leaf upstream-channel-id {
119 type uint8 {
120 range "0..15";
121 }
122 default "0";
123 description
124 "Upstream channel ID.";
125 reference
126 "ITU-T G.989.3 clause 6.1.5.5.";
127 }
128 leaf downstream-channel-id {
129 type uint8 {
130 range "0..15";
131 }
132 default "0";
133 description
134 "Downstream channel ID.";
135 reference
136 "ITU-T G.989.3 clause 6.1.5.4.";
137 }
138 leaf downstream-wavelength {
139 type uint32 {
140 range "0 | 156000..161000";
141 }
142 units "0.01nm";
143 default "0";
144 description
145 "Downstream wavelength.";
146 reference
147 "ITU-T G.989.2";
148 }
149 }
150 }
151}