tailf-confd-monitoring

This module defines status objects for monitoring of ConfD. Copyright 2019 Cisco Systems, Inc. All rights reserved. Permission ...

  • Version: 2019-10-30

    tailf-confd-monitoring@2019-10-30


    
      module tailf-confd-monitoring {
    
        yang-version 1;
    
        namespace
          "http://tail-f.com/yang/confd-monitoring";
    
        prefix tfcm;
    
        import tailf-common-monitoring {
          prefix tfcg;
          revision-date "2019-04-09";
        }
    
        organization "Tail-f Systems";
    
        description
          "This module defines status objects for monitoring of ConfD.
    
         Copyright 2019 Cisco Systems, Inc.
         All rights reserved.
         Permission is hereby granted to redistribute this file without
         modification.";
    
        revision "2019-10-30" {
          description
            "Released as part of ConfD-7.1.3";
        }
    
        revision "2019-04-09" {
          description
            "Released as part of ConfD-7.1.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2018-06-14" {
          description
            "Released as part of ConfD-6.7.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2013-06-14" {
          description
            "Released as part of ConfD-4.3.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2013-03-07" {
          description
            "Released as part of ConfD-4.2.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2012-11-08" {
          description
            "Released as part of ConfD-4.1.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2012-03-08" {
          description
            "Released as part of ConfD-3.9.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2011-12-08" {
          description
            "Released as part of ConfD-3.8.
    
           Imported latest tailf-common-monitoring module.";
        }
    
        revision "2011-09-22" {
          description
            "Released as part of ConfD-3.7.";
        }
    
    
        container confd-state {
          config false;
          leaf version {
            type string;
            description
              "Tail-f product version number.";
          }
    
          container smp {
            presence
              "Indicates that symmetric multiprocessing is used";
            leaf number-of-threads {
              type uint16;
              description
                "Number of threads used by the daemon.";
            }
          }  // container smp
    
          leaf epoll {
            type boolean;
            description
              "Indicates whether an enhanced poll() function is used";
          }
    
          leaf daemon-status {
            type enumeration {
              enum "starting" {
                value 0;
                description
                  "The daemon is starting up.";
              }
              enum "phase0" {
                value 1;
                description
                  "The daemon is running in start phase 0.";
              }
              enum "phase1" {
                value 2;
                description
                  "The daemon is running in start phase 1.";
              }
              enum "started" {
                value 3;
                description
                  "The daemon is started.";
              }
              enum "stopping" {
                value 4;
                description
                  "The daemon is stopping.";
              }
            }
          }
    
          leaf read-only-mode {
            type empty;
          }
    
          leaf upgrade-mode {
            type empty;
            description
              "Note that if the node is in upgrade mode, it is not possible to
    get any information from the system over NETCONF.
    The error-app-tag will be upgrade-in-progress.
    
    Existing CLI sessions can get system information.";
          }
    
          container ha {
            presence
              "The daemon is running in a High Availability (HA) cluster.";
            leaf mode {
              type enumeration {
                enum "none" {
                  value 0;
                }
                enum "slave" {
                  value 1;
                }
                enum "master" {
                  value 2;
                }
                enum "relay-slave" {
                  value 3;
                }
              }
              description
                "The current HA mode of the node in the HA cluster.";
            }
    
            leaf node-id {
              when "../mode != 'none'";
              type ha-node-id;
              description
                "The node identifier of this node in the HA cluster.";
            }
    
            leaf master-node-id {
              when
                "../mode = 'slave' or ../mode = 'relay-slave'";
              type string;
              description
                "The node identifier of this node's parent node.
    This is the HA cluster's master node unless relay slaves
    are used.";
            }
    
            leaf-list connected-slave {
              when
                "../mode = 'master' or ../mode = 'relay-slave'";
              type string;
              description
                "The node identifiers of the currently connected slaves.";
            }
    
            leaf-list pending-slave {
              when
                "../mode = 'master' or ../mode = 'relay-slave'";
              type string;
              description
                "The node identifiers of slaves with pending acknowledgement
    of synchronous replication.";
            }
          }  // container ha
    
          container loaded-data-models {
            list data-model {
              key "name";
              description
                "This list contains all loaded YANG data modules for the
    'root schema'.
    
    This list is a superset of the 'schema' list defined in
    ietf-netconf-monitoring, which only lists modules exported
    through NETCONF.";
              leaf name {
                type string;
                description
                  "The YANG module name.";
              }
    
              leaf revision {
                type string;
                description
                  "The YANG module revision.";
              }
    
              leaf namespace {
                type inet:uri;
                description
                  "The YANG module namespace.";
              }
    
              leaf prefix {
                type string;
                description
                  "The prefix defined in the YANG module.";
              }
    
              choice exported {
                leaf exported-to-all {
                  type empty;
                  description
                    "This leaf is present if the module is exported to all
    northbound interfaces.";
                }
                leaf-list exported-to {
                  type union {
                    type enumeration {
                      enum "netconf" {
                        value 0;
                      }
                      enum "cli" {
                        value 1;
                      }
                      enum "webui" {
                        value 2;
                      }
                      enum "rest" {
                        value 3;
                      }
                      enum "snmp" {
                        value 4;
                      }
                    }
                    type string;
                  }
                  description
                    "A list of the contexts (northbound interfaces) this module
    is exported to.";
                }
              }  // choice exported
            }  // list data-model
    
            list mount {
              key "mount-id";
              leaf mount-id {
                type string;
              }
    
              list data-model {
                key "name";
                description
                  "This list contains all loaded YANG data modules for a mount-id
    schema.
    
    This list is a superset of the 'schema' list defined in
    ietf-netconf-monitoring, which only lists modules exported
    through NETCONF.";
                leaf name {
                  type string;
                  description
                    "The YANG module name.";
                }
    
                leaf revision {
                  type string;
                  description
                    "The YANG module revision.";
                }
    
                leaf namespace {
                  type inet:uri;
                  description
                    "The YANG module namespace.";
                }
    
                leaf prefix {
                  type string;
                  description
                    "The prefix defined in the YANG module.";
                }
    
                choice exported {
                  leaf exported-to-all {
                    type empty;
                    description
                      "This leaf is present if the module is exported to all
    northbound interfaces.";
                  }
                  leaf-list exported-to {
                    type union {
                      type enumeration {
                        enum "netconf" {
                          value 0;
                        }
                        enum "cli" {
                          value 1;
                        }
                        enum "webui" {
                          value 2;
                        }
                        enum "rest" {
                          value 3;
                        }
                        enum "snmp" {
                          value 4;
                        }
                      }
                      type string;
                    }
                  }
                }  // choice exported
              }  // list data-model
            }  // list mount
          }  // container loaded-data-models
    
          container netconf {
            presence
              "Indicates that the NETCONF server is running.";
            container listen {
              description
                "The transport addresses the NETCONF server is listening on.
    
    Note that other mechanisms can be put in front of the TCP
    addresses below, e.g., an OpenSSH server.  Such mechanisms
    are not known to the daemon and not listed here.";
              list tcp {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list tcp
    
              list ssh {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list ssh
            }  // container listen
          }  // container netconf
    
          container cli {
            presence
              "Indicates that the CLI server is running.";
            container listen {
              description
                "The transport addresses the CLI server is listening on.
    
    In addition to the SSH addresses listen below, the CLI can
    always be invoked through the daemons IPC port.
    
    Note that other mechanisms can be put in front of the IPC
    port, e.g., an OpenSSH server.  Such mechanisms are not
    known to the daemon and not listed here.";
              list ssh {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list ssh
            }  // container listen
          }  // container cli
    
          container webui {
            presence
              "Indicates that the WebUI server is running.";
            container listen {
              description
                "The transport addresses the WebUI server is listening on.";
              list tcp {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list tcp
    
              list ssl {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list ssl
            }  // container listen
          }  // container webui
    
          container rest {
            presence
              "Indicates that the REST server is running.";
            container listen {
              description
                "The transport addresses the REST server is listening on.";
              list tcp {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list tcp
    
              list ssl {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list ssl
            }  // container listen
          }  // container rest
    
          container snmp {
            presence
              "Indicates that the SNMP agent is running.";
            container listen {
              description
                "The transport addresses the SNMP agent is listening on.";
              list udp {
                leaf ip {
                  type inet:ip-address;
                }
    
                leaf port {
                  type inet:port-number;
                }
              }  // list udp
            }  // container listen
    
            leaf-list mib {
              type string;
              description
                "MIBs loaded by the SNMP agent.";
            }
    
            container version {
              description
                "SNMP version used by the engine.";
              leaf v1 {
                type empty;
              }
    
              leaf v2c {
                type empty;
              }
    
              leaf v3 {
                type empty;
              }
            }  // container version
    
            leaf engine-id {
              type string {
                pattern
                  '([0-9a-fA-F]){2}(:([0-9a-fA-F]){2}){4,31}';
              }
              description
                "The local Engine ID specified as a list of colon-specified
    hexadecimal octets e.g. '4F:4C:41:71'.";
            }
          }  // container snmp
    
          container internal {
            container callpoints {
              list callpoint {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list callpoint
    
              list validationpoint {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list validationpoint
    
              list actionpoint {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list actionpoint
    
              list snmp-inform-callback {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list snmp-inform-callback
    
              list snmp-notification-subscription {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list snmp-notification-subscription
    
              list error-formatting-callback {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list error-formatting-callback
    
              list typepoint {
                key "id";
                leaf id {
                  type string;
                  description "Callpoint id";
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list typepoint
    
              list notification-stream-replay {
                key "name";
                leaf name {
                  type string;
                  description
                    "Name of the notification stream.";
                }
    
                leaf replay-support {
                  type enumeration {
                    enum "none" {
                      value 0;
                    }
                    enum "builtin" {
                      value 1;
                    }
                    enum "external" {
                      value 2;
                    }
                  }
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // list notification-stream-replay
    
              container authentication-callback {
                presence
                  "Indicates that the authentication callback
    is enabled or registered";
                leaf enabled {
                  type boolean;
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // container authentication-callback
    
              container authorization-callbacks {
                presence
                  "Indicates that the authorization callbacks
    are enabled or registered";
                leaf enabled {
                  type boolean;
                }
    
                choice registration-type {
                  container daemon {
                    leaf id {
                      type uint32;
                      description
                        "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                    }
    
                    leaf name {
                      type string;
                      description
                        "The name of the application daemon that has
    registered for a callpoint.";
                    }
    
                    leaf-list callbacks {
                      type string;
                      description
                        "The DP callbacks that have registered for a callpoint.";
                    }
    
                    leaf error {
                      type enumeration {
                        enum "PENDING" {
                          value 0;
                          description
                            "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                        }
                      }
                      description
                        "If this leaf exists, there is a problem
    with the daemon registration.";
                    }
                  }  // container daemon
    
                  case range {
                    leaf path {
                      type string;
                      description
                        "The path of the list that a range registration
    pertains to.";
                    }
    
                    list range {
                      leaf lower {
                        type string;
                        description
                          "The space-separated set of keys that defines the lower
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf upper {
                        type string;
                        description
                          "The space-separated set of keys that defines the upper
    endpoint of the range for a non-default registration.";
                      }
    
                      leaf default {
                        type empty;
                        description
                          "If this leaf exists, this is a default registration
    - in this case 'lower' and 'upper' do not exist.";
                      }
    
                      container daemon {
                        leaf id {
                          type uint32;
                          description
                            "The numerical id assigned to the application daemon
    that has registered for a callpoint.";
                        }
    
                        leaf name {
                          type string;
                          description
                            "The name of the application daemon that has
    registered for a callpoint.";
                        }
    
                        leaf-list callbacks {
                          type string;
                          description
                            "The DP callbacks that have registered for a callpoint.";
                        }
    
                        leaf error {
                          type enumeration {
                            enum "PENDING" {
                              value 0;
                              description
                                "This value means that the application daemon has not
    completed the registration (with confd_register_done()).";
                            }
                          }
                          description
                            "If this leaf exists, there is a problem
    with the daemon registration.";
                        }
                      }  // container daemon
                    }  // list range
                  }  // case range
                  leaf file {
                    type string;
                    description
                      "The pathname of the shared object implementing the type
    for a typepoint.";
                  }
                }  // choice registration-type
    
                leaf error {
                  type enumeration {
                    enum "NOT-REGISTERED" {
                      value 0;
                      description
                        "This value means that there is no registration
    for the callpoint.";
                    }
                    enum "UNKNOWN" {
                      value 1;
                      description
                        "This value means that the callpoint does not exist,
    but there is a registration for it.";
                    }
                  }
                  description
                    "If this leaf exists, there is a problem
    with the callpoint registration.";
                }
              }  // container authorization-callbacks
            }  // container callpoints
    
            container cdb {
              typedef datastore-name {
                type enumeration {
                  enum "running" {
                    value 0;
                  }
                  enum "startup" {
                    value 1;
                  }
                  enum "operational" {
                    value 2;
                  }
                }
                description
                  "Name of one of the datastores implemented by CDB.";
              }
    
              typedef subscription-id {
                type uint32;
                description
                  "The numerical subscription identifier (subscription point)
    that uniquely identifies a subscription.";
              }
    
              typedef subscription-priority {
                type int32;
                description
                  "The numerical priority associated with a subscripition
    for configuration data changes.";
              }
              list datastore {
                key "name";
                leaf name {
                  type datastore-name;
                }
    
                leaf transaction-id {
                  type string;
                  description
                    "The id of the last committed transaction for the 'running'
    datastore, or the last update for the 'operational' datastore.
    For the 'operational' datastore, it is only present when HA
    is enabled.";
                }
    
                leaf write-queue {
                  type uint32;
                  description
                    "Number of pending write requests for the 'operational'
    datastore on a HA slave that is in the process of syncronizing
    with the master.";
                }
    
                leaf filename {
                  type string;
                  description
                    "The pathname of the file that is used for persistent storage
    for the datastore. Not present for 'running' when 'startup'
    exists.";
                }
    
                leaf disk-size {
                  type size-in-bytes;
                  description
                    "The size of the file that is used for persistent storage
    for the datastore. Only present if 'filename' is present.";
                }
    
                leaf ram-size {
                  type size-in-bytes;
                  description
                    "The size of the in-memory representation of the datastore.";
                }
    
                leaf read-locks {
                  type uint32;
                  description
                    "The number of read locks on the datastore. Not present for
    the 'operational' data store.";
                }
    
                leaf write-lock-set {
                  type boolean;
                  description
                    "Indicates whether a write lock is in effect for the datastore.
    Not present for the 'operational' datastore.";
                }
    
                leaf subscription-lock-set {
                  type boolean;
                  description
                    "Indicates whether a subscription lock is in effect for the
    'operational' datastore.";
                }
    
                leaf waiting-for-replication-sync {
                  type boolean;
                  description
                    "Indicates whether synchronous replication from HA master to
    HA slave is in progress for the datastore. Not present for the
    'operational' datastore.";
                }
    
                container pending-subscription-sync {
                  presence
                    "waiting for subscription sync";
                  description
                    "Information pertaining to subscription notifications that have
    been delivered to, but not yet acknowledged by, subscribing
    clients. Not present for the 'startup' datastore.";
                  leaf priority {
                    type subscription-priority;
                    description
                      "The priority of the subscriptions that generated the
    notifications that are waiting for acknowledgement.
    Not present for the 'operational' datastore.";
                  }
    
                  list notification {
                    leaf client-name {
                      type string;
                      description
                        "The name of the client that is the recipient of the
    notification.";
                    }
    
                    leaf-list subscription-ids {
                      type subscription-id;
                      description
                        "The subscription identifiers for the subscriptions that
    generated the notification.";
                    }
                  }  // list notification
    
                  leaf time-remaining {
                    type union {
                      type uint64;
                      type enumeration {
                        enum "infinity" {
                          value 0;
                        }
                      }
                    }
                    description
                      "The remaining time in seconds until subscribing clients
    that have not acknowledged their notifications are
    considered unresponsive and will be disconnected. See
    /confdConfig/cdb/clientTimeout in the confd.conf(5) manual
    page. The value 'infinity' means that no timeout has been
    configured in confd.conf.";
                  }
                }  // container pending-subscription-sync
    
                list pending-notification-queue {
                  description
                    "Queues of notifications that have been generated but not
    yet delivered to subscribing clients. Not present for the
    'startup' datastore.";
                  list notification {
                    leaf priority {
                      type subscription-priority;
                      description
                        "The priority of the subscriptions that generated the
    notification. Not present for the the 'operational'
    datastore.";
                    }
    
                    leaf client-name {
                      type string;
                      description
                        "The name of the client that is the recipient of the
    notification.";
                    }
    
                    leaf-list subscription-ids {
                      type subscription-id;
                      description
                        "The subscription identifiers for the subscriptions that
    generated the notification.";
                    }
                  }  // list notification
                }  // list pending-notification-queue
              }  // list datastore
    
              list client {
                leaf name {
                  type string;
                  description "The client name.";
                }
    
                leaf info {
                  type string;
                  description
                    "Additional information about the client obtained at connect
    time. If present, it consists of client PID and socket file
    descriptor number.";
                }
    
                leaf type {
                  type enumeration {
                    enum "inactive" {
                      value 0;
                    }
                    enum "client" {
                      value 1;
                    }
                    enum "subscriber" {
                      value 2;
                    }
                    enum "waiting" {
                      value 3;
                    }
                  }
                  description
                    "The type of client: 'inactive' is a client connection without
    any specific state. 'client' means that the client has an
    active session towards a datastore. A 'subscriber' has made
    one or more subscriptions. 'waiting' means that the client is
    waiting for completion of a call such as cdb_wait_start().";
                }
    
                leaf datastore {
                  type union {
                    type datastore-name;
                    type enumeration {
                      enum "pre_commit_running" {
                        value 9;
                      }
                    }
                  }
                  description
                    "The name of the datastore when 'type' = 'client'. The value
    'pre_commit_running' is the 'pseudo' datastore representing
    'running' before a commit.";
                }
    
                leaf lock {
                  type enumeration {
                    enum "read" {
                      value 0;
                    }
                    enum "subscription" {
                      value 1;
                    }
                    enum "pending-read" {
                      value 2;
                    }
                    enum "pending-subscription" {
                      value 3;
                    }
                  }
                  description
                    "Set when 'type' = 'client' and the client has requested or
    acquired a lock on the datastore. The 'pending-read' and
    'pending-subscription' values indicate that the client has
    requested but not yet acquired the corresponding lock.
    A 'read' lock is never taken for the 'operational' datastore,
    a 'subscription' lock is never taken for any other datastore
    than 'operational'.";
                }
    
                list subscription {
                  leaf datastore {
                    type datastore-name;
                    description
                      "The name of the datastore for the subscription - only
    'running' and 'operational' can have subscriptions.";
                  }
    
                  leaf twophase {
                    type empty;
                    description
                      "Present if this is a 'twophase' subscription, i.e.
    notifications will be delivered at 'prepare' in addition
    to 'commit'. Only for the 'running' datastore.";
                  }
    
                  leaf priority {
                    type subscription-priority;
                    description
                      "The priority of the subscription.";
                  }
    
                  leaf id {
                    type subscription-id;
                    description
                      "The subscription identifier for the subscription.";
                  }
    
                  leaf path {
                    type string;
                    description
                      "The path that the subscription pertains to.";
                  }
    
                  leaf error {
                    type enumeration {
                      enum "PENDING" {
                        value 0;
                        description
                          "This value means that the subscribing client has not
    completed the subscription (with cdb_subscribe_done()).";
                      }
                    }
                    description
                      "If this leaf exists, there is a problem
     with the subscription.";
                  }
                }  // list subscription
              }  // list client
            }  // container cdb
          }  // container internal
        }  // container confd-state
      }  // module tailf-confd-monitoring
    

© 2023 YumaWorks, Inc. All rights reserved.