blob: 24a5141717f5aa80341f67d8193b59b470b842be [file] [log] [blame]
Elia Battistonac8d23f2022-03-14 17:54:56 +01001module bbf-device-aggregation {
2 yang-version 1.1;
3 namespace "urn:bbf:yang:bbf-device-aggregation";
4 prefix bbf-dev-agg;
5
6 import bbf-yang-types {
7 prefix bbf-yang;
8 }
9 import bbf-device-types {
10 prefix bbf-dvct;
11 }
12 import ietf-yang-schema-mount {
13 prefix yangmnt;
14 }
15
16 organization
17 "Broadband Forum <https://www.broadband-forum.org>
18 Common YANG Work Area";
19 contact
20 "Comments or questions about this Broadband Forum YANG module
21 should be directed to <mailto:help@broadband-forum.org>.
22
23 Editor: Nick Hancock, ADTRAN
24
25 Editor: Ludwig Pauwels, Nokia
26
27 PS Leader: Joey Boyd, ADTRAN
28
29 WA Director: Joey Boyd, ADTRAN
30
31 WA Director: Sven Ooghe, Nokia";
32 description
33 "This module contains a collection of YANG definitions for
34 supporting the Broadband Forum requirements on device
35 aggregation. As such, this module is specific to access network
36 equipment (e.g., BBF-specified Access Nodes and FTTdp DPUs).
37
38 Copyright (c) 2017-2022, Broadband Forum
39
40 Redistribution and use in source and binary forms, with or
41 without modification, are permitted provided that the following
42 conditions are met:
43
44 1. Redistributions of source code must retain the above copyright
45 notice, this list of conditions and the following disclaimer.
46
47 2. Redistributions in binary form must reproduce the above
48 copyright notice, this list of conditions and the following
49 disclaimer in the documentation and/or other materials
50 provided with the distribution.
51
52 3. Neither the name of the copyright holder nor the names of its
53 contributors may be used to endorse or promote products
54 derived from this software without specific prior written
55 permission.
56
57 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
58 CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,
59 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
60 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
61 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
62 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
63 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
64 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
65 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
66 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
67 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
68 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
69 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70
71 The above license is used as a license under copyright only.
72 Please reference the Forum IPR Policy for patent licensing terms
73 <https://www.broadband-forum.org/ipr-policy>.
74
75 Any moral rights which are necessary to exercise under the above
76 license grant are also deemed granted under this license.
77
78 This version of this YANG module is part of TR-383a5; see
79 the TR itself for full legal notices.";
80
81 revision 2022-03-01 {
82 description
83 "Amendment 5.
84 * Approval Date: 2022-03-01.
85 * Publication Date: 2022-03-01.";
86 reference
87 "TR-383a5: Common YANG Modules
88 <https://www.broadband-forum.org/technical/download/
89 TR-383_Amendment-5.pdf>";
90 }
91
92 container devices {
93 description
94 "Aggregation and management of multiple devices.";
95 list device {
96 key "name";
97 description
98 "An aggregated device.";
99 leaf name {
100 type bbf-yang:string-ascii64;
101 description
102 "The unique name of the device.";
103 }
104 leaf type {
105 type identityref {
106 base bbf-dvct:device-type;
107 }
108 mandatory true;
109 description
110 "The type of device.";
111 }
112 container identification {
113 presence
114 "Presence of the container indicates that data nodes that
115 identify the device exist.";
116 description
117 "Data nodes identifying the device instance.";
118 choice identification {
119 mandatory true;
120 description
121 "A choice for different methods to uniquely identify a
122 device instance.";
123 case hardware-inventory-data {
124 leaf mfg-name {
125 type string;
126 description
127 "The name of the manufacturer of the device.";
128 }
129 leaf model-name {
130 type string;
131 description
132 "The vendor-specific model name associated with the
133 device.";
134 }
135 leaf serial-num {
136 type string;
137 description
138 "The vendor-specific serial number string for the
139 device.";
140 }
141 }
142 }
143 }
144 container data {
145 description
146 "The data nodes of the device's schema.";
147 yangmnt:mount-point "device-yang-library" {
148 description
149 "The YANG library associated with the device.";
150 }
151 }
152 }
153 }
154}