Skip to content

Commit

Permalink
gnsi: align with latest certz version (openconfig#1061)
Browse files Browse the repository at this point in the history
* (M) release/models/gnsi/openconfig-gnsi-certz.yang 
Align oc paths for gnsi with latest certz version.  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 6, 2024
1 parent 9826cae commit 7d21dfc
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions release/models/gnsi/openconfig-gnsi-certz.yang
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ module openconfig-gnsi-certz {
"This module provides a data model for the metadata of gRPC credentials
installed on a networking device.";

oc-ext:openconfig-version "0.5.0";
oc-ext:openconfig-version "0.6.0";

revision 2024-03-05 {
description
"rename access/reject counters";
reference "0.6.0";
}

revision 2024-02-13 {
description
Expand Down Expand Up @@ -87,36 +93,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 7d21dfc

Please sign in to comment.