opertest1

This module holds a sample operational data store. Copyright (c) 2012-2020 by Cisco Systems, Inc. All rights reserved.

  • Version: 2016-10-12

    opertest1@2016-10-12


    
      module opertest1 {
    
        yang-version 1;
    
        namespace
          "http://www.cisco.com/panini/calvados/opertest1";
    
        prefix opertest1;
    
        import tailf-common {
          prefix tailf;
        }
        import tailf-xsd-types {
          prefix xs;
        }
        import Cisco-IOS-XR-sysadmin-types {
          prefix calvados;
        }
    
        organization "Cisco Systems Inc.";
    
        contact "conger@cisco.com";
    
        description
          "This module holds a sample operational data store.
    
         Copyright (c) 2012-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2016-10-12" {
          description
            "Unhide commands and configs. Moved to advanced-grp";
        }
    
        revision "2011-08-28" {
          description "Initial revision";
        }
    
    
        container oper {
          config false;
          leaf fred {
            type int32 {
              range "0..9";
            }
          }
    
          leaf barney {
            type int32 {
              range "0..9999";
            }
          }
    
          leaf wilma {
            type int32 {
              range "0..9999";
            }
          }
    
          leaf betty {
            type int32 {
              range "0..9999";
            }
          }
    
          list slates {
            key "slatenum";
            leaf slatenum {
              type int32 {
                range "0..999";
              }
            }
    
            leaf mrslate {
              type int32 {
                range "0..99999999";
              }
            }
          }  // list slates
    
          container uname {
            leaf system {
              type string;
              description
                "The operating system name";
            }
    
            leaf nodename {
              type string;
              description
                "The hostname or nodename";
            }
    
            leaf release {
              type string;
              description
                "The release level of the operating system implementation";
            }
    
            leaf version {
              type string;
              description
                "The operating system implmentation version level";
            }
    
            leaf machine {
              type string;
              description
                "The name of the hardware type the system is running on";
            }
    
            leaf all {
              type string;
              description "All the fields";
            }
          }  // container uname
    
          container uptime {
            leaf curtime {
              type xs:time;
              description "Current time";
            }
    
            leaf uptime {
              type string;
              description "Time since boot";
            }
    
            leaf loadavg1min {
              type xs:float;
              description
                "Weighted Exponential One-Minute Load Average";
            }
    
            leaf loadavg5min {
              type xs:float;
              description
                "Weighted Exponential Five-Minute Load Average";
            }
    
            leaf loadavg15min {
              type xs:float;
              description
                "Weighted Exponential Fifteen-Minute Load Average";
            }
          }  // container uptime
    
          container w {
            container header-info {
              leaf curtime {
                type xs:time;
                description "Current time";
              }
    
              leaf uptime {
                type string;
                description "Time since boot";
              }
    
              leaf loadavg1min {
                type xs:float;
                description
                  "Weighted Exponential One-Minute Load Average";
              }
    
              leaf loadavg5min {
                type xs:float;
                description
                  "Weighted Exponential Five-Minute Load Average";
              }
    
              leaf loadavg15min {
                type xs:float;
                description
                  "Weighted Exponential Fifteen-Minute Load Average";
              }
            }  // container header-info
    
            container users {
              list user {
                key "tty";
                leaf user {
                  type string;
                }
    
                leaf tty {
                  type string;
                }
    
                leaf from {
                  type string;
                }
    
                leaf login-at {
                  type xs:time;
                }
    
                leaf idle {
                  type string;
                }
    
                leaf jcpu {
                  type string;
                }
    
                leaf pcpu {
                  type string;
                }
    
                leaf what {
                  type string;
                }
              }  // list user
            }  // container users
          }  // container w
        }  // container oper
    
        container actions {
          tailf:action "BamBam" {
            input {
              leaf "location" {
                type "calvados:location-id";
                mandatory "true";
              }
              leaf "when" {
                type "string";
                mandatory "true";
              }
              leaf "graceful" {
                type "empty";
              }
            }
            output {
              leaf "result" {
                type "string";
                mandatory "true";
              }
              leaf "chatty" {
                type "string";
              }
            }
          }
        }  // container actions
      }  // module opertest1
    

© 2023 YumaWorks, Inc. All rights reserved.