-
Notifications
You must be signed in to change notification settings - Fork 0
/
wirelesshart-network-metrics.yang
119 lines (116 loc) · 2.77 KB
/
wirelesshart-network-metrics.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
module wirelesshart-network-metrics {
namespace "http://dei.uc.pt/yang/wirelesshart";
prefix "na";
organization "University of Coimbra";
contact "[email protected]";
description "This module represent WirelessHART metrics shared in the network according to the standard";
revision "2017-04-12" {
description "Initial revision.";
reference "NA";
}
container network-metrics {
description "Container for WirelessHART network metrics";
config false;
list device-health{
config false;
key "macaddress";
description "List the last report of each device";
leaf macaddress {
config false;
type string;
description "Mac address of device";
}
leaf packets-generated-by-device{
config false;
type uint16;
description "Number of Packets generated by Device";
}
leaf packets-terminated-by-device{
config false;
type uint16;
description "Number of Packets terminated by Device";
}
leaf dll-mic-failures{
config false;
type uint8;
description "Number of Data Link Layer mic failures";
}
leaf nwk-mic-failures{
config false;
type uint8;
description "Number of Network Link Layer Failures";
}
leaf power-status{
config false;
type int8;
description "Power Status generated by Device";
}
leaf crc-errors{
config false;
type uint8;
description "Number of CRC errors detected";
}
}
list neighbour-health-list{
config false;
key "macaddress";
description "List of linked neighbours";
leaf macaddress {
config false;
type string;
description "Mac address of device";
}
list neighbour{
key "neighbour-macaddress";
leaf neighbour-macaddress {
config false;
type string;
description "Neighbor Mac address";
}
leaf mean-rsl{
config false;
type int8;
description "Mean RSL to the neighbour";
}
leaf packets-transmitted-to-the-neighbour{
config false;
type uint16;
description "Packets transmitted to the neighbour";
}
leaf packets-received-from-the-neighbour{
config false;
type uint16;
description "Packets received from the neighbour";
}
leaf failed-transmits{
config false;
type uint16;
description "Failed transmissions to the neighbour";
}
}
}
list neighbour-signal-levels{
config false;
key "macaddress";
description "List of listen neighbours";
leaf macaddress {
config false;
type string;
description "Mac address of device";
}
list neighbour{
key "neighbour-macaddress";
leaf neighbour-macaddress {
config false;
type string;
description "Neighbor Mac address";
}
leaf mean-rsl{
config false;
type int8;
description "Mean RSL to the neighbour";
}
}
}
}
}