Skip to content

Commit

Permalink
gnsi: align with latest certz version
Browse files Browse the repository at this point in the history
The certz yang file was updated since 
the PR to move from openconfig/gnsi to 
openconfig/public, and this updated
version of certz had not been
included in the PR.

see the changes to gnsi-certz.yang at:
openconfig/gnsi#156

This commit also sets the container
name for the certz counters to be just
"counters" to be backward-compatible 
with the existing gnsi-certz.yang.

The module name/prefix already 
mark these counters as certz-related,
so we don't need to duplicate this
information in the container name too.
  • Loading branch information
brianneville authored Mar 5, 2024
1 parent 9826cae commit 055fc8f
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions release/models/gnsi/openconfig-gnsi-certz.yang
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ module openconfig-gnsi-certz {

oc-ext:openconfig-version "0.5.0";

revision 2024-03- {
description
"align yang with the openconfig/gnsi version as of:
https://github.com/openconfig/gnsi/tree/e08ebfe537e1603015291898e6d5e9abe1562a0b
(update counter names)";
reference "0.6.0";
}

revision 2024-02-13 {
description
"Major style updates and move to openconfig/public from openconfig/gnsi.
Expand Down Expand Up @@ -87,36 +95,36 @@ module openconfig-gnsi-certz {
"A collection of counters that were collected while evaluating
access to the gRPC server.";

container certz-counters {
container counters {
config false;
description
"A collection of counters that were collected by the gRPC during
the authentication process.";
"A collection of counters that were collected by the gRPC during
the authentication process.";

leaf access-rejects {
leaf connection-rejects {
type oc-yang:counter64;
description
"The total number of times a TLS handshake failure has occurred and
the gRPC server denied access a client.";
"The total number of times that gRPC clients have failed
in establishing a connection to the server.";
}
leaf last-access-reject {
leaf last-connection-reject {
type oc-types:timeticks64;
description
"A timestamp of the last time the gRPC denied access to
the server.";
"A timestamp of the last time a gRPC client failed
in establishing a connection to the server.";
}
leaf access-accepts {
leaf connection-accepts {
type oc-yang:counter64;
description
"The total number of times a successful TLS handshake is completed
and the gPRC server allows access to a client.";
"The total number of times that gRPC clients have succeeded
in establishing a connection to the server.";
}
leaf last-access-accept {
leaf last-connection-accept {
type oc-types:timeticks64;
description
"A timestamp of the last time the gRPC allowed access to
the server.";
}
"A timestamp of the last time a gRPC client succeeded
in establishing a connection to the server.";
}
}
}

Expand Down

0 comments on commit 055fc8f

Please sign in to comment.