Cisco-IOS-XE-stack-member-oper

This module contains a collection of YANG definitions for operational data of all Stack members. Copyright (c) 2019-2020 by Cisc...

  • Version: 2021-03-01

    Cisco-IOS-XE-stack-member-oper@2021-03-01


    
      module Cisco-IOS-XE-stack-member-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-stack-member-oper";
    
        prefix stack-member-ios-xe-oper;
    
        import Cisco-IOS-XE-common-types {
          prefix common-types-ios-xe;
        }
        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 operational data of all Stack members.
         Copyright (c) 2019-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-03-01" {
          description
            "Added Stackwise-Virtual oper data";
          reference
            "1.1.0";
    
        }
    
        revision "2020-11-01" {
          description "Initial revision";
          reference
            "1.0.0";
    
        }
    
        cisco-semver:module-version "1.1.0";
        cisco-semver:module-version "1.0.0";
    
        typedef svl-protocol-status {
          type enumeration {
            enum "svl-conn-disconnected" {
              value 0;
              description
                "Stackwise-Virtual connection disconnected";
            }
            enum "svl-conn-pending" {
              value 1;
              description
                "Stackwise-Virtual connection pending";
            }
            enum "svl-conn-ready" {
              value 2;
              description
                "Stackwise-Virtual connection ready";
            }
            enum "svl-conn-error" {
              value 3;
              description
                "Stackwise-Virtual connection error";
            }
            enum "svl-conn-timeout" {
              value 4;
              description
                "Stackwise-Virtual connection timeout";
            }
          }
          description
            "Stackwise-Virtual port status";
        }
    
        typedef svl-port-status {
          type enumeration {
            enum "svl-port-down" {
              value 0;
              description
                "Stackwise-Virtual port down";
            }
            enum "svl-port-up" {
              value 1;
              description
                "Stackwise-Virtual port up";
            }
          }
          description
            "Stackwise-Virtual port status";
        }
    
        typedef stacking-mode {
          type enumeration {
            enum "mode-stackwise-rear" {
              value 0;
              description "Mode Stackwise Rear";
            }
            enum "mode-active-standby" {
              value 1;
              description "Mode Active Standby";
            }
            enum "mode-stackwise-geo" {
              value 2;
              description "Mode Stackwise Geo";
            }
            enum "mode-stackwise-virtual" {
              value 3;
              description
                "Mode Stackwise Virtual";
            }
            enum "mode-unknown" {
              value 4;
              description "Mode Unknown";
            }
          }
          description "Stack Mode";
        }
    
        container stack-member-oper-data {
          config false;
          description
            "Stack member operational data";
          list location {
            key "fru slot bay chassis node";
            description
              "A list of data provider locations";
            leaf fru {
              type common-types-ios-xe:fru-type;
              description
                "Field replaceable unit (FRU) type";
            }
    
            leaf slot {
              type int16;
              description "Slot number";
            }
    
            leaf bay {
              type int16;
              description "Bay number";
            }
    
            leaf chassis {
              type int16;
              description "Chassis number";
            }
    
            leaf node {
              type uint16;
              description "Node number";
            }
    
            list stack-member-info {
              key "chassis-num";
              description "Stack member data";
              leaf chassis-num {
                type uint8;
                description "Switch number";
              }
    
              list mbr-port {
                description
                  "Stack member port data";
                leaf port-num {
                  type uint8;
                  description "Port number";
                }
    
                leaf cable-length-cm {
                  type uint16;
                  units "centimeters";
                  description
                    "Stack cable length in centimetres";
                }
    
                leaf nbr-port-num {
                  type uint8;
                  description
                    "Neighbor port number";
                }
    
                leaf link-flaps {
                  type uint16;
                  description
                    "Number of link flaps";
                }
    
                container stats {
                  description "Stack port stats";
                  leaf rac-inserted {
                    type uint64;
                    units "bytes";
                    description
                      "Outgoing byte count on stack port";
                  }
    
                  leaf rac-copied {
                    type uint64;
                    units "bytes";
                    description
                      "Incoming byte count on stack port";
                  }
    
                  leaf rac-data-crc-err {
                    type uint64;
                    description
                      "Stack interface data CRC error";
                  }
    
                  leaf rac-invalid-ringword-err {
                    type uint64;
                    description
                      "Stack interface invalid ring word error";
                  }
    
                  leaf rac-pcs-codeword-err {
                    type uint64;
                    description
                      "Stack interface PCS error";
                  }
    
                  leaf rac-rwcrc-err {
                    type uint64;
                    description
                      "Stack interface ring word CRC error";
                  }
                }  // container stats
    
                leaf stats-time {
                  type yang:date-and-time;
                  description
                    "Last time stats were collected";
                }
    
                list svl-port {
                  when
                    "(../../stack-mode='mode-stackwise-virtual')";
                  description
                    "Stackwise-virtual ports statistics";
                  container local-port {
                    description
                      "Local Port info";
                    leaf chassis {
                      type uint32;
                      description
                        "Switch number";
                    }
    
                    leaf slot {
                      type uint32;
                      description "Switch Slot";
                    }
    
                    leaf port {
                      type uint32;
                      description "Switch Port";
                    }
                  }  // container local-port
    
                  container remote-port {
                    description
                      "Remote Port info";
                    leaf chassis {
                      type uint32;
                      description
                        "Switch number";
                    }
    
                    leaf slot {
                      type uint32;
                      description "Switch Slot";
                    }
    
                    leaf port {
                      type uint32;
                      description "Switch Port";
                    }
                  }  // container remote-port
    
                  leaf port-status {
                    type svl-port-status;
                    description
                      "Port status info";
                  }
    
                  leaf link-status-change-time {
                    type yang:date-and-time;
                    description
                      "Link status change timestamp";
                  }
    
                  leaf link-protocol-status {
                    type svl-protocol-status;
                    description
                      "Link protocol status";
                  }
    
                  leaf conn-status-change-time {
                    type yang:date-and-time;
                    description
                      "Connection status change timestamp";
                  }
    
                  container port-stats {
                    description
                      "Local Port statistics";
                    leaf lmp-tx {
                      type uint64;
                      description
                        "Link-Management-Protocol TX counter";
                    }
    
                    leaf lmp-rx {
                      type uint64;
                      description
                        "Link-Management-Protocol RX counter";
                    }
    
                    leaf lmp-tx-seq-no {
                      type uint64;
                      description
                        "Last Link-Management-Protocol TX seq num";
                    }
    
                    leaf lmp-rx-seq-no {
                      type uint64;
                      description
                        "Last Link-Management-Protocol RX seq num";
                    }
    
                    leaf lmp-rx-last-good-count {
                      type uint64;
                      description
                        "Link-Management-Protocol RX last good count";
                    }
    
                    leaf latency-rx-err-count {
                      type uint64;
                      description
                        "Latency RX error counts";
                    }
    
                    leaf seq-err-rx-count {
                      type uint64;
                      description
                        "Sequence error RX counts";
                    }
    
                    leaf link-timeout-flap-count {
                      type uint64;
                      description
                        "Link-Management-Protocol link timeout flap counts";
                    }
                  }  // container port-stats
                }  // list svl-port
              }  // list mbr-port
    
              container mbr-keepalive {
                description
                  "Stack member keepalive data";
                leaf sent {
                  type uint64;
                  description "Keepalives sent";
                }
    
                leaf received {
                  type uint64;
                  description
                    "Keepalives received";
                }
    
                leaf sent-failure {
                  type uint64;
                  description
                    "Keepalives failed to be sent";
                }
    
                leaf receive-failure {
                  type uint64;
                  description
                    "Keepalives failed to be received";
                }
    
                leaf consecutive-losses {
                  type uint64;
                  description
                    "Consecutive keepalives lost";
                }
              }  // container mbr-keepalive
    
              container mbr-peer-timeout {
                description
                  "Stack member peer timeout data";
                leaf peer-timeout-cfg {
                  type uint64;
                  units "milliseconds";
                  description
                    "Peer timeout in milliseconds";
                }
    
                leaf watermark-50-cnt {
                  type uint64;
                  description
                    "Number of times keepalives missed for 50% of timeout value";
                }
    
                leaf watermark-75-cnt {
                  type uint64;
                  description
                    "Number of times keepalives missed for 75% of timeout value";
                }
    
                leaf last-watermark-50time {
                  when
                    "(../watermark-50-cnt > 0)";
                  type yang:date-and-time;
                  description
                    "Last time 50% watermark was exceeded";
                }
    
                leaf last-watermark-75time {
                  when
                    "(../watermark-75-cnt > 0)";
                  type yang:date-and-time;
                  description
                    "Last time 75% watermark was exceeded";
                }
              }  // container mbr-peer-timeout
    
              leaf stack-mode {
                type stacking-mode;
                description "Stack mode";
              }
    
              list dad-port {
                when
                  "(../stack-mode='mode-stackwise-virtual')";
                description
                  "Stackwise-virtual DAD ports statistics";
                container dad-port {
                  description "DAD Port info";
                  leaf chassis {
                    type uint32;
                    description "Switch number";
                  }
    
                  leaf slot {
                    type uint32;
                    description "Switch Slot";
                  }
    
                  leaf port {
                    type uint32;
                    description "Switch Port";
                  }
                }  // container dad-port
    
                leaf port-status {
                  type svl-port-status;
                  description
                    "DAD Port status info";
                }
    
                leaf tx-seq-no {
                  type uint32;
                  description
                    "DAD Port next TX seq num";
                }
              }  // list dad-port
    
              leaf mbr-boottime {
                type yang:date-and-time;
                description
                  "Stack member boot time";
              }
            }  // list stack-member-info
          }  // list location
        }  // container stack-member-oper-data
      }  // module Cisco-IOS-XE-stack-member-oper
    

© 2023 YumaWorks, Inc. All rights reserved.