1 module onf-core-model-conditional-packages {
2 namespace "urn:onf:params:xml:ns:yang:onf-core-model-conditional-packages";
3 prefix onf-core-model-conditional-packages;
7 import microwave-model {
8 prefix microwave-model;
10 organization "ONF (Open Networking Foundation) Open Transport Working Group - Wireless Transport Project";
11 contact "WG Web: <https://www.opennetworking.org/technical-communities/areas/specification/1931-optical-transport>
12 WG List: <mailto:wireless-transport@login.opennetworking.org>
14 <mailto:lyong@ciena.com>
15 WG Chair: Giorgio Cazzaniga
16 <mailto:giorgio.cazzaniga@sm-optics.com>
17 Editors: Thorsten Heinze
18 <mailto:thorsten.heinze@telefonica.com>
20 <mailto:martin.skorupski@highstreet-technologies.com>";
21 description "This model adds conditional packages to the ONF CoreModel in order to support fault management for object classes NetworkElement, Equipment and Holder.";
23 description "Initial version";
24 reference "ONF TR 532: A YANG Data Model for Wireless Networks.";
26 /***********************
27 * package type-definitions
28 **********************/
29 grouping current-problem-type-g {
32 default "not-specified";
34 description "Name of the alarm according capability::supportedAlarms.";
36 uses microwave-model:mw-current-problem-g;
39 grouping network-element-current-problem-type-g {
42 default "not-specified";
44 description "Name of the alarm according capability::supportedAlarms.";
46 leaf object-reference {
49 description "An explaining string of the related object class. This is necesseary, because the current problem list of the NetworkElement object class acts as a container for all alarms, where its object classes are not modeled.";
51 uses microwave-model:mw-current-problem-g;
54 grouping problem-severity-type-g {
55 leaf problem-type-name {
57 description "Name of the alarm according to Capability::supportedAlarms";
59 leaf problem-type-severity {
60 type microwave-model:severity-type;
61 description "Severity of this type of alarm.";
65 typedef processing-type {
77 /***********************
78 * package object-classes
79 **********************/
80 /***********************
81 * package network-element
82 **********************/
83 container network-element-pac {
84 leaf network-element {
86 path '/core-model:network-element/core-model:uuid';
90 container network-element-capability {
92 uses network-element-capability-g;
95 container network-element-configuration {
96 uses network-element-configuration-g;
99 container network-element-status {
101 uses network-element-status-g;
104 container network-element-current-problems {
106 uses network-element-current-problems-g;
111 grouping network-element-capability-g {
112 leaf-list supported-alarms {
119 grouping network-element-configuration-g {
120 list problem-type-severity-list {
121 key 'problem-type-name';
122 uses problem-severity-type-g;
123 description "Severity of the problem to be configured.";
125 leaf trigger-refresh {
127 description "A trigger to instruct the netconf server to refresh its internal database/cache.
128 It is primary used for alarms status, but could be used for anything else too.
129 It is assumed that the refresh mechanism takes some time.
130 In order to indicate the process to the controller a refreshStatus attribute is used.";
134 grouping network-element-status-g {
135 leaf refresh-status {
136 type processing-type;
142 grouping network-element-current-problems-g {
143 list current-problem-list {
144 key 'sequence-number';
146 uses network-element-current-problem-type-g;
152 /***********************
154 **********************/
159 path '/core-model:equipment/core-model:uuid';
163 container equipment-capability {
165 uses equipment-capability-g;
168 container equipment-configuration {
169 uses equipment-configuration-g;
172 container equipment-status {
174 uses equipment-status-g;
177 container equipment-current-problems {
179 uses equipment-current-problems-g;
184 grouping equipment-capability-g {
185 leaf-list supported-alarms {
188 description "Available alarms to be listed. Names are to be separated by commas.";
192 grouping equipment-configuration-g {
193 list problem-type-severity-list {
194 key 'problem-type-name';
195 uses problem-severity-type-g;
196 description "Severity of the problem to be configured.";
200 grouping equipment-status-g {
203 grouping equipment-current-problems-g {
204 list current-problem-list {
205 key 'sequence-number';
207 uses current-problem-type-g;
213 /***********************
215 **********************/
220 path '/core-model:equipment/core-model:contained-holder/core-model:uuid';
224 container holder-capability {
226 uses holder-capability-g;
229 container holder-configuration {
230 uses holder-configuration-g;
233 container holder-status {
235 uses holder-status-g;
238 container holder-current-problems {
240 uses holder-current-problems-g;
245 grouping holder-capability-g {
246 leaf-list supported-alarms {
249 description "Available alarms to be listed. Names are to be separated by commas.";
253 grouping holder-configuration-g {
254 list problem-type-severity-list {
255 key 'problem-type-name';
256 uses problem-severity-type-g;
257 description "Severity of the problem to be configured.";
261 grouping holder-status-g {
264 grouping holder-current-problems-g {
265 list current-problem-list {
266 key 'sequence-number';
268 uses current-problem-type-g;
274 /***********************
276 **********************/
281 path '/core-model:equipment/core-model:exposed-cable/core-model:connector/core-model:uuid';
285 container connector-capability {
287 uses connector-capability-g;
290 container connector-configuration {
291 uses connector-configuration-g;
294 container connector-status {
296 uses connector-status-g;
299 container connector-current-problems {
301 uses connector-current-problems-g;
306 grouping connector-capability-g {
307 leaf-list supported-alarms {
310 description "Available alarms to be listed. Names are to be separated by commas.";
314 grouping connector-configuration-g {
315 list problem-type-severity-list {
316 key 'problem-type-name';
317 uses problem-severity-type-g;
318 description "Severity of the problem to be configured.";
320 leaf remote-end-point {
322 description "A network wide identifier of the remote connector. The value is used for topology discovery.
323 Please see also ConnectorStatus::localEndPoint.";
327 grouping connector-status-g {
328 leaf local-end-point {
330 description "A network wide global identifier of the this connector, which can be used to discover the physical connectivitiy.
331 The value should contain the network element name, because the network element software can assume that the network element name is unique in the network.
332 The value should be formated:
333 <connector:uuid>@<network-element-name>
335 Please see also ConnectorConfiguration::remoteEndPoint";
339 grouping connector-current-problems-g {
340 list current-problem-list {
341 key 'sequence-number';
343 uses current-problem-type-g;