openconfig-gnsi-acctz

This module provides counters of gNSI accountZ requests and responses and the quantity of data transferred.

  • Version: 2024-12-24

    openconfig-gnsi-acctz@2024-12-24


    
      module openconfig-gnsi-acctz {
    
        yang-version 1;
    
        namespace
          "https://github.com/openconfig/yang/gnsi/acctz";
    
        prefix oc-gnsi-acctz;
    
        import openconfig-extensions {
          prefix oc-ext;
        }
        import openconfig-system {
          prefix oc-sys;
        }
        import openconfig-system-grpc {
          prefix oc-sys-grpc;
        }
        import openconfig-yang-types {
          prefix oc-yang;
        }
        import openconfig-gnsi {
          prefix oc-gnsi;
        }
    
        organization "OpenConfig Working Group";
    
        contact
          "OpenConfig working group
        netopenconfig@googlegroups.com";
    
        description
          "This module provides counters of gNSI accountZ requests and responses and
        the quantity of data transferred.";
    
        revision "2024-12-24" {
          description
            "Add counters for login/logout accounting records";
          reference
            "0.4.0";
    
        }
    
        revision "2024-10-07" {
          description
            "Remove `idle-timeouts` and `counters-last-cleared` leaves.
          Relocate source-counters and client-counters to separate paths";
          reference
            "0.3.0";
    
        }
    
        revision "2024-02-13" {
          description
            "Major style updates and move to openconfig/public from openconfig/gnsi.
          Last commit at
          https://github.com/openconfig/gnsi/commit/347935aac66135d5649dadb9583ed0914578aab0";
          reference
            "0.2.0";
    
        }
    
        revision "2023-12-01" {
          description "Initial revision.";
          reference
            "0.1.0";
    
        }
    
        oc-ext:openconfig-version "0.4.0";
    
        typedef cmd-service {
          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;
            }
          }
          description
            "enum CommandService.CmdServiceType";
        }
    
        typedef grpc-service {
          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;
            }
          }
          description
            "enum GrpcService.GrpcServiceType";
        }
    
        typedef session-service {
          type enumeration {
            enum "UNSPECIFIED" {
              value 0;
            }
            enum "LOGIN" {
              value 1;
            }
            enum "LOGOUT" {
              value 2;
            }
          }
          description
            "enum SessionInfo.SessionStatus";
        }
    
        typedef service-request {
          type enumeration {
            enum "CMD_SERVICE" {
              value 4;
            }
            enum "GRPC_SERVICE" {
              value 5;
            }
            enum "SESSION_SERVICE" {
              value 6;
            }
          }
          description
            "enum RecordResponse.service_request";
        }
    
        typedef service-type {
          type union {
            type cmd-service;
            type grpc-service;
            type session-service;
          }
          description
            "enum cmd or grpc service type";
        }
      }  // module openconfig-gnsi-acctz
    

© 2024 YumaWorks, Inc. All rights reserved.