Cisco-IOS-XE-netconf-diag-oper

This module contains a collection of YANG definitions for NETCONF Message Diagnostics operational data, which includes current d...

  • Version: 2021-03-01

    Cisco-IOS-XE-netconf-diag-oper@2021-03-01


    
      module Cisco-IOS-XE-netconf-diag-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-netconf-diag-oper";
    
        prefix ios-xe-netconf-diag-oper;
    
        import ietf-yang-types {
          prefix yang;
        }
        import cisco-semver {
          prefix cisco-semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
    
         Postal: 170 W Tasman Drive
         San Jose, CA 95134
    
         Tel: +1 1800 553-NETS
    
         E-mail: cs-yang@cisco.com";
    
        description
          "This module contains a collection of YANG definitions
         for NETCONF Message Diagnostics operational data,
         which includes current diagnostic level, total log size
         and a list of transactions having been recorded.
         Copyright (c) 2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-03-01" {
          description "Initial revision";
          reference
            "1.0.0";
    
        }
    
        cisco-semver:module-version "1.0.0";
    
        typedef diagnostic-level {
          type enumeration {
            enum "diag-disabled" {
              value 0;
              description
                "No diagnostic data collection (default).";
            }
            enum "diag-basic" {
              value 1;
              description
                "Include IOS CLI parser command logs, developer logs,
               running-config change, and last rollback contents.";
            }
            enum "diag-maximum" {
              value 2;
              description
                "Include the basic diagnostics plus before and after
               running-config snapshots.";
            }
          }
          description
            "Levels of diagnostic reporting.";
        }
    
        container netconf-diag-oper-data {
          config false;
          description
            "Operational data of NETCONF Message Diagnostics,
           which includes current diagnostic level, total log size
           and a list of transactions having been recorded.";
          container diag-summary {
            presence "diag-summary";
            description
              "Summary of current status of NETCONF Message diagnostics,
             which includes current diagnostic level, total log size
             and number of transactions having been recorded.";
            leaf level {
              type diagnostic-level;
              description
                "Diagnostic level enabled.";
            }
    
            leaf log-size {
              type uint64;
              description
                "Total number of bytes consumed by the diagnostic logs.";
            }
    
            leaf trans-count {
              type uint16;
              description
                "Number of transactions having been recorded.";
            }
          }  // container diag-summary
    
          list diag-trans {
            key "message";
            description
              "A list of transactions having been recorded.";
            leaf message {
              type uint32;
              description
                "Message number assigned for identifying this transaction.
    It can be used to find the transaction in the diagnostic logs.";
            }
    
            leaf username {
              type string;
              description
                "Username of this NETCONF session.";
            }
    
            leaf session-id {
              type int32;
              description
                "NETCONF session-id of this transaction.";
            }
    
            leaf trans-id {
              type int32;
              description
                "Transaction-id of this transaction.";
            }
    
            leaf start-time {
              type yang:date-and-time;
              description
                "Starting time of recording the transaction.";
            }
    
            leaf end-time {
              type yang:date-and-time;
              description
                "Ending time of recording the transaction.";
            }
    
            leaf log-size {
              type uint64;
              description
                "Number of bytes consumed by the diagnostic logs of
    this transaction.";
            }
          }  // list diag-trans
        }  // container netconf-diag-oper-data
      }  // module Cisco-IOS-XE-netconf-diag-oper
    

© 2023 YumaWorks, Inc. All rights reserved.