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;
8 import microwave-model {
9 prefix microwave-model;
11 import ietf-inet-types {
16 "ONF (Open Networking Foundation) Open Transport Working Group - Wireless Transport Project";
18 "WG Web: <https://www.opennetworking.org/technical-communities/areas/specification/1931-optical-transport>
19 WG List: <mailto:wireless-transport@login.opennetworking.org>
21 <mailto:lyong@ciena.com>
22 WG Chair: Giorgio Cazzaniga
23 <mailto:giorgio.cazzaniga@sm-optics.com>
24 Editors: Thorsten Heinze
25 <mailto:thorsten.heinze@telefonica.com>
27 <mailto:martin.skorupski@highstreet-technologies.com>";
29 "This model adds conditional packages to the ONF CoreModel in order to support fault management for object classes NetworkElement, Equipment and Holder.";
33 "Initial version, used only ONAP PoC 2018-06-25";
34 reference "ONF TR 532: A YANG Data Model for Wireless Networks.";
37 grouping current-problem-type-g {
40 default "not-specified";
43 "Name of the alarm according capability::supportedAlarms.";
45 uses microwave-model:mw-current-problem-g;
50 grouping network-element-current-problem-type-g {
53 default "not-specified";
56 "Name of the alarm according capability::supportedAlarms.";
58 leaf object-reference {
62 "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.";
64 uses microwave-model:mw-current-problem-g;
69 grouping problem-severity-type-g {
70 leaf problem-type-name {
73 "Name of the alarm according to Capability::supportedAlarms";
75 leaf problem-type-severity {
76 type microwave-model:severity-type;
78 "Severity of this type of alarm.";
84 typedef processing-type {
99 container network-element-pac {
100 leaf network-element {
102 path "/core-model:network-element/core-model:uuid";
107 container network-element-capability {
109 uses network-element-capability-g;
113 container network-element-configuration {
114 uses network-element-configuration-g;
118 container network-element-status {
120 uses network-element-status-g;
124 container network-element-current-problems {
126 uses network-element-current-problems-g;
134 grouping network-element-capability-g {
135 leaf-list supported-alarms {
145 grouping network-element-configuration-g {
146 list problem-type-severity-list {
147 key "problem-type-name";
148 uses problem-severity-type-g;
150 "Severity of the problem to be configured.";
152 leaf trigger-refresh {
155 "A trigger to instruct the netconf server to refresh its internal database/cache.
156 It is primary used for alarms status, but could be used for anything else too.
157 It is assumed that the refresh mechanism takes some time.
158 In order to indicate the process to the controller a refreshStatus attribute is used.";
160 leaf connection-request-username {
167 leaf connection-request-password {
178 grouping network-element-status-g {
179 leaf refresh-status {
180 type processing-type;
185 leaf connection-request-url {
186 type inet:domain-name;
195 grouping network-element-current-problems-g {
196 list current-problem-list {
197 key "sequence-number";
199 uses network-element-current-problem-type-g;
211 path "/core-model:equipment/core-model:uuid";
216 container equipment-capability {
218 uses equipment-capability-g;
222 container equipment-configuration {
223 uses equipment-configuration-g;
227 container equipment-status {
229 uses equipment-status-g;
233 container equipment-current-problems {
235 uses equipment-current-problems-g;
243 grouping equipment-capability-g {
244 leaf-list supported-alarms {
248 "Available alarms to be listed. Names are to be separated by commas.";
254 grouping equipment-configuration-g {
255 list problem-type-severity-list {
256 key "problem-type-name";
257 uses problem-severity-type-g;
259 "Severity of the problem to be configured.";
265 grouping equipment-status-g {
266 leaf software-version {
270 "Indicates the current running software version of the equipment.";
272 leaf additional-software-version {
276 "Indicates the current running software version of the equipment.";
283 "Seconds since the last reboot.";
285 leaf local-time-zone {
289 "??? Which format ??? - +00:00 proposed";
295 grouping equipment-current-problems-g {
296 list current-problem-list {
297 key "sequence-number";
299 uses current-problem-type-g;
311 path "/core-model:equipment/core-model:contained-holder/core-model:uuid";
316 container holder-capability {
318 uses holder-capability-g;
322 container holder-configuration {
323 uses holder-configuration-g;
327 container holder-status {
329 uses holder-status-g;
333 container holder-current-problems {
335 uses holder-current-problems-g;
343 grouping holder-capability-g {
344 leaf-list supported-alarms {
348 "Available alarms to be listed. Names are to be separated by commas.";
354 grouping holder-configuration-g {
355 list problem-type-severity-list {
356 key "problem-type-name";
357 uses problem-severity-type-g;
359 "Severity of the problem to be configured.";
365 grouping holder-status-g {
370 grouping holder-current-problems-g {
371 list current-problem-list {
372 key "sequence-number";
374 uses current-problem-type-g;
386 path "/core-model:equipment/core-model:exposed-cable/core-model:connector/core-model:uuid";
391 container connector-capability {
393 uses connector-capability-g;
397 container connector-configuration {
398 uses connector-configuration-g;
402 container connector-status {
404 uses connector-status-g;
408 container connector-current-problems {
410 uses connector-current-problems-g;
418 grouping connector-capability-g {
419 leaf-list supported-alarms {
423 "Available alarms to be listed. Names are to be separated by commas.";
429 grouping connector-configuration-g {
430 list problem-type-severity-list {
431 key "problem-type-name";
432 uses problem-severity-type-g;
434 "Severity of the problem to be configured.";
436 leaf remote-end-point {
439 "A network wide identifier of the remote connector. The value is used for topology discovery.
440 Please see also ConnectorStatus::localEndPoint.";
446 grouping connector-status-g {
447 leaf local-end-point {
450 "A network wide global identifier of the this connector, which can be used to discover the physical connectivitiy.
451 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.
452 The value should be formated:
453 <connector:uuid>@<network-element-name>
455 Please see also ConnectorConfiguration::remoteEndPoint";
461 grouping connector-current-problems-g {
462 list current-problem-list {
463 key "sequence-number";
465 uses current-problem-type-g;