blob: 5756c0c4272d074a51d87e35364d9cdabcf136ff [file] [log] [blame]
Tomáš Pecka6a2334b2022-07-12 13:57:54 +02001module velia-alarms {
2 yang-version 1.1;
3 namespace "http://czechlight.cesnet.cz/yang/velia-alarms";
4 prefix ve-al;
5
6 import ietf-alarms {
7 prefix al;
8 }
9
10 revision 2022-07-12 {
11 description
12 "Initial version.";
13 }
14
15 identity velia-alarm {
16 base al:alarm-type-id;
17 }
18
19 identity systemd-unit-failure {
20 base velia-alarm;
21 }
Tomáš Pecka2117ce52023-05-12 11:28:34 +020022
23 identity sensor-alarm {
24 base velia-alarm;
25 description "Abstract base for hardware sensor related alarms.";
26 }
27
28 identity sensor-missing-alarm {
29 base sensor-alarm;
30 description "Alarm to model that sensor is missing.";
31 }
32
Tomáš Pecka5a4c0352023-12-12 12:29:28 +010033 identity sensor-nonoperational {
34 base sensor-alarm;
35 description "Sensor is set as nonoperational.";
36 }
37
Tomáš Pecka2117ce52023-05-12 11:28:34 +020038 identity sensor-threshold-crossing-alarm {
39 base sensor-alarm;
40 description "Abstract base for sensor threshold crossing.";
41 }
42
43 identity sensor-low-value-alarm {
44 base sensor-threshold-crossing-alarm;
45 description "Sensor value is too low.";
46 }
47
48 identity sensor-high-value-alarm {
49 base sensor-threshold-crossing-alarm;
50 description "Sensor value is too high.";
51 }
Tomáš Pecka6a2334b2022-07-12 13:57:54 +020052}
53