-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,061 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.0.0 | ||
6.4.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
module gnsi-acctz { | ||
yang-version 1.1; | ||
namespace "https://github.com/openconfig/gnsi/acctz/yang"; | ||
prefix gnsi-acctz; | ||
|
||
import openconfig-system { | ||
prefix oc-sys; | ||
} | ||
import openconfig-system-grpc { | ||
prefix oc-sys-grpc; | ||
} | ||
import openconfig-types { | ||
prefix oc-types; | ||
} | ||
import openconfig-yang-types { | ||
prefix oc-yang; | ||
} | ||
organization | ||
"Google LLC"; | ||
|
||
contact | ||
"Google LLC"; | ||
|
||
description | ||
"This module provides a data model for the metadata of the gRPC | ||
accounting operations on a device."; | ||
|
||
revision 2023-01-24 { | ||
description | ||
"Remove duplicate counters container."; | ||
reference "0.2.0"; | ||
} | ||
|
||
revision 2023-12-01 { | ||
description | ||
"Initial revision."; | ||
reference "0.1.0"; | ||
} | ||
|
||
typedef cmd_service { | ||
description "enum CommandService.CmdServiceType"; | ||
type enumeration { | ||
enum UNSPECIFIED { | ||
value 0; | ||
} | ||
enum SHELL { | ||
value 1; | ||
} | ||
enum CLI { | ||
value 2; | ||
} | ||
enum WEBUI { | ||
value 3; | ||
} | ||
enum RESTCONF { | ||
value 4; | ||
} | ||
enum NETCONF { | ||
value 5; | ||
} | ||
} | ||
} | ||
typedef grpc_service { | ||
description "enum GrpcService.GrpcServiceType"; | ||
type enumeration { | ||
enum UNSPECIFIED { | ||
value 0; | ||
} | ||
enum GNMI { | ||
value 1; | ||
} | ||
enum GNOI { | ||
value 2; | ||
} | ||
enum GNSI { | ||
value 3; | ||
} | ||
enum GRIBI { | ||
value 4; | ||
} | ||
enum P4RT { | ||
value 5; | ||
} | ||
} | ||
} | ||
typedef service-request { | ||
description "enum RecordResponse.service_request"; | ||
type enumeration { | ||
enum cmd_service { | ||
value 4; | ||
} | ||
enum grpc_service { | ||
value 5; | ||
} | ||
} | ||
} | ||
typedef service-type { | ||
description "enum cmd or grpc service type"; | ||
type union { | ||
type cmd_service; | ||
type grpc_service; | ||
} | ||
} | ||
|
||
// gnsi.acctz client statistics | ||
grouping client-counters { | ||
description | ||
"A collection of counters that were collected by the gNSI.acctz | ||
module while servicing acctz clients."; | ||
|
||
leaf history_istruncated { | ||
type oc-yang:counter64; | ||
description | ||
"The total number of times that a RecordResponse were marked | ||
with history_istruncated true. ie: a request was made for a | ||
timestamp that did not exist in the history or another | ||
qualifying event as documented in acctz.prot."; | ||
} | ||
leaf RecordRequests { | ||
type oc-yang:counter64; | ||
description | ||
"The total number of RecordRequest RPCs that have been received."; | ||
} | ||
leaf RecordResponses { | ||
type oc-yang:counter64; | ||
description | ||
"The total number of RecordResponse RPCs that have been sent."; | ||
} | ||
} | ||
|
||
// gnsi.acctz producer statistics | ||
grouping source-counters { | ||
description | ||
"A collection of counters for gNSI.acctz record production per | ||
service request type."; | ||
|
||
list source-records { | ||
key "service type"; | ||
// unique "service type"; | ||
description | ||
"The total number of times the gNSI.authz module denied access | ||
to a RPC."; | ||
|
||
leaf service { | ||
type service-request; | ||
mandatory true; | ||
} | ||
leaf type { | ||
type service-type; | ||
mandatory true; | ||
} | ||
leaf records { | ||
type oc-yang:counter64; | ||
description | ||
"The total number of records produced for the service_request | ||
type."; | ||
} | ||
} | ||
} | ||
|
||
grouping grpc-server-acctz-counters { | ||
description | ||
"A collection of counters from the gNSI.acctz module. This collection | ||
augments the existing certz grpc counters"; | ||
|
||
container client-counters { | ||
uses client-counters; | ||
} | ||
container source-counters { | ||
uses source-counters; | ||
} | ||
} | ||
|
||
// Augments section. | ||
augment "/oc-sys:system/oc-sys-grpc:grpc-servers/oc-sys-grpc:grpc-server" { | ||
description | ||
"Counters collected by the gNSI.acctz module."; | ||
|
||
uses grpc-server-acctz-counters; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.