Skip to content

Commit e9692a1

Browse files
committed
Change pathz telemetry to be per policy rather than per path
1 parent 0b22560 commit e9692a1

File tree

1 file changed

+19
-32
lines changed

1 file changed

+19
-32
lines changed

release/models/gnsi/openconfig-gnsi-pathz.yang

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ module openconfig-gnsi-pathz {
3434

3535
oc-ext:openconfig-version "0.3.0";
3636

37+
revision 2025-04-15 {
38+
description
39+
"Refactor gnsi counters to be only per policy.";
40+
reference "0.4.0";
41+
}
42+
3743
revision 2024-02-13 {
3844
description
3945
"Major style updates and move to openconfig/public from openconfig/gnsi.
@@ -109,62 +115,43 @@ module openconfig-gnsi-pathz {
109115
description
110116
"A collection of counters collected by the gNSI.pathz module.";
111117

112-
container gnmi-pathz-policy-counters {
113-
config false;
114-
description
115-
"A collection of per-OpenConfig path counters.";
116-
117-
uses gnmi-pathz-policy-xpath-success-failure-counters;
118-
}
119-
}
120-
121-
grouping gnmi-pathz-policy-xpath-success-failure-counters {
122-
description
123-
"A collection of per-OpenConfig path counters.";
124-
125-
container paths {
118+
container policy {
126119
description
127-
"Container for a collection of per-OpenConfig path counters.";
120+
"Container for a collection of per-Pathz policy counters.";
128121

129-
list path {
122+
list policy {
130123
description
131-
"List for a collection of per-OpenConfig path counters.";
124+
"List for a collection of per-Pathz policy counters.";
132125
key "name";
133126
leaf name {
134127
type leafref {
135128
path "../state/name";
136129
}
137130
description
138-
"A OpenConfig schema path the counter were
139-
collected for.
140-
141-
For documentation on the naming of paths, see
142-
https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-path-conventions.md";
131+
"A OpenConfig Pathz policy the counters were
132+
collected for.";
143133
}
144134
container state {
145135
description
146-
"Operational state for per-OpenConfig path counters.";
136+
"Operational state for per-Pathz policy counters.";
147137
leaf name {
148138
type string;
149139
description
150-
"A OpenConfig schema path the counter were
151-
collected for.
152-
153-
For documentation on the naming of paths, see
154-
https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-path-conventions.md";
140+
"A per-Pathz policy the counters were
141+
collected for.";
155142
}
156143
container reads {
157144
description
158145
"The counter were collected while
159-
performing a read operation on the
160-
schema path.";
146+
performing a read operations on the
147+
policy.";
161148
uses counters;
162149
}
163150
container writes {
164151
description
165152
"The counter were collected while
166-
performing a write operation on the
167-
schema path.";
153+
performing a write operations on the
154+
policy.";
168155
uses counters;
169156
}
170157
}

0 commit comments

Comments
 (0)