1 module o-ran-sc-alarms-v1 {
3 namespace "urn:o-ran:sc:alarms:1.0";
6 import o-ran-sc-root-v1 {
12 "RFC 8632: A YANG Data Model for Alarm Management";
16 "O-RAN Software Community";
20 "This module augements the o-ran-sc-controlled-element and
21 o-ran-sc-controlled-function object by adding ietf-alarms.
23 Copyright 2020 the O-RAN Alliance.
25 Licensed under the Apache License, Version 2.0 (the 'License');
26 you may not use this file except in compliance with the License.
27 You may obtain a copy of the License at
29 http://www.apache.org/licenses/LICENSE-2.0
31 Unless required by applicable law or agreed to in writing, software
32 distributed under the License is distributed on an 'AS IS' BASIS,
33 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34 See the License for the specific language governing permissions and
35 limitations under the License.";
41 "O-RAN-OAM-Interface-Specification (O1)";
45 list alarm-reference {
46 key "resource alarm-type-id alarm-type-qualifier";
49 "References to related alarms. Note that the related alarm
50 might have been purged from the alarm list.";
53 path "/al:alarms/al:alarm-list/al:alarm/al:resource";
54 require-instance false;
57 "The alarming resource for the related alarm.";
61 path "/al:alarms/al:alarm-list/al:alarm"
62 + "[al:resource=current()/../resource]"
63 + "/al:alarm-type-id";
64 require-instance false;
67 "The alarm type identifier for the related alarm.";
69 leaf alarm-type-qualifier {
71 path "/al:alarms/al:alarm-list/al:alarm"
72 + "[al:resource=current()/../resource]"
73 + "[al:alarm-type-id=current()/../alarm-type-id]"
74 + "/al:alarm-type-qualifier";
75 require-instance false;
78 "The alarm qualifier for the related alarm.";
82 "A group adding ietf-alarm references.";
85 augment "/root:controlled-element" {
88 "An augmentation, which adds ietf-alarms
89 to root:controlled-element.";
92 augment "/root:controlled-element/root:controlled-function" {
95 "An augmentation, which adds ietf-alarms
96 to root:controlled-function.";