diff --git a/release/models/gnsi/openconfig-gnsi-acctz.yang b/release/models/gnsi/openconfig-gnsi-acctz.yang index d95ccccfb..4848130fc 100644 --- a/release/models/gnsi/openconfig-gnsi-acctz.yang +++ b/release/models/gnsi/openconfig-gnsi-acctz.yang @@ -10,9 +10,6 @@ module openconfig-gnsi-acctz { import openconfig-system-grpc { prefix oc-sys-grpc; } - import openconfig-types { - prefix oc-types; - } import openconfig-yang-types { prefix oc-yang; } @@ -30,7 +27,14 @@ module openconfig-gnsi-acctz { "This module provides counters of gNSI accountZ requests and responses and the quantity of data transferred."; - oc-ext:openconfig-version "0.2.0"; + oc-ext:openconfig-version "1.0.0"; + + revision 2024-10-07 { + description + "Remove `idle-timeouts` and `counters-last-cleared` leaves. + Relocate source-counters and client-counters to separate paths"; + reference "1.0.0"; + } revision 2024-02-13 { description @@ -117,10 +121,11 @@ module openconfig-gnsi-acctz { "A collection of counters that were collected by the gNSI.acctz module while servicing acctz clients."; - container client-counters { + container 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 @@ -129,21 +134,15 @@ module openconfig-gnsi-acctz { request was made for a timestamp that did not exist in the history."; } - leaf idle-timeouts { - type oc-yang:counter64; - description - "The total number of times that a client was disconnected - due to missing keepalives (ie: RecordRequests)."; - } leaf record-requests { type oc-yang:counter64; description - "The total number of RecordRequest RPCs that have been received."; + "The total number of RecordRequest messages that have been received."; } leaf record-responses { type oc-yang:counter64; description - "The total number of RecordResponse RPCs that have been sent."; + "The total number of RecordResponse messages that have been sent."; } } } @@ -154,7 +153,7 @@ module openconfig-gnsi-acctz { "A collection of counters for gNSI.acctz record production per service request type."; - container source-counters { + container counters { description "A collection of counters for gNSI.acctz record production per service request type."; @@ -162,8 +161,7 @@ module openconfig-gnsi-acctz { key "service type"; // unique "service type"; description - "The total number of times the gNSI.authz module denied access - to a RPC."; + "A collection of the number of records produced for each service-request type."; leaf service { type leafref { @@ -207,29 +205,25 @@ module openconfig-gnsi-acctz { grouping grpc-server-acctz-counters { description - "A collection of counters from the gNSI.acctz module."; + "A collection of counters from the gNSI.acctz module. This collection + augments the existing certz grpc counters"; - container acctz-counters { + container acctz { config false; description - "A collection of counters from the gNSI.acctz module - for acctz clients and sources."; - - container state { - description - "Operational state relating to acctz-counters."; - - leaf counters-last-cleared { - type oc-types:timeticks64; - description - "The last time that the counters were cleared (reset to - zero). This value is reported as nanoseconds since epoch - (January 1st, 1970 00:00:00 GMT)."; - } + "A collection of counters from the gNSI.acctz module. This collection + augments the existing certz grpc counters"; + uses client-counters; + } + } - uses client-counters; - } + grouping system-acctz-counters { + description + "A collection of counters from the gNSI.acctz module."; + container acctz { + description + "A collection of counters from the gNSI.acctz module."; uses source-counters; } } @@ -238,8 +232,15 @@ module openconfig-gnsi-acctz { augment "/oc-sys:system/oc-sys-grpc:grpc-servers/oc-sys-grpc:grpc-server" { when "config[contains(services, 'oc-gnsi:GNSI')]/enable = 'true'"; description - "Counters collected by the gNSI.acctz module."; + "Counters collected by the gNSI.acctz module regarding grpc servers."; uses grpc-server-acctz-counters; } + + augment "/oc-sys:system/oc-sys:aaa/oc-sys:state" { + description + "Counters collected by the gNSI.acctz module regarding the system."; + + uses system-acctz-counters; + } }