Cisco-IOS-XR-drivers-media-eth-oper

This module contains a collection of YANG definitions for Cisco IOS-XR drivers-media-eth package operational data. This module ...

  • Version: 2021-02-12

    Cisco-IOS-XR-drivers-media-eth-oper@2021-02-12


    
      module Cisco-IOS-XR-drivers-media-eth-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-drivers-media-eth-oper";
    
        prefix drivers-media-eth-oper;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import cisco-semver {
          prefix semver;
        }
    
        include Cisco-IOS-XR-drivers-media-eth-oper-sub1 {
          revision-date "2021-02-12";
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
         
         Postal: 170 West Tasman Drive
         San Jose, CA 95134
         
         Tel: +1 800 553-NETS
         
         E-mail: cs-yang@cisco.com";
    
        description
          "This module contains a collection of YANG definitions
         for Cisco IOS-XR drivers-media-eth package operational data.
         
         This module contains definitions
         for the following management objects:
           ethernet-interface: Ethernet operational data
         
         Copyright (c) 2013-2021 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-02-12" {
          description
            "Added support for PFC per TC Rx drop Data Frames.
           2020-11-04
             Added support for SER alarms.
           2020-09-08
             Added new ethernet speed values.";
        }
    
        revision "2020-02-19" {
          description
            "Description updated.
           2019-11-27
           Adding operational value for power m-factor.
           2019-08-15
           Adding PFC watchdog support.";
        }
    
        revision "2019-05-21" {
          description
            "Added new leaf for frame preemption configuration.";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2017-05-01" {
          description
            "Fixing backward compatibility error in module.";
        }
    
        revision "2017-04-04" {
          description
            "Added new fields to phy data.";
        }
    
        revision "2015-01-07" {
          description "IOS XR 5.3.1 revision.";
        }
    
        semver:module-version "2.0.0";
        semver:module-version "1.2.0";
        semver:module-version "1.1.0";
        semver:module-version "1.0.0";
    
        container ethernet-interface {
          config false;
          description
            "Ethernet operational data";
          container statistics {
            description
              "Ethernet controller statistics table";
            list statistic {
              key "interface-name";
              description
                "Ethernet statistics information";
              leaf interface-name {
                type xr:Interface-name;
                description
                  "The name of the interface";
              }
    
              leaf received-total-bytes {
                type uint64;
                description
                  "Total octets of all frames";
              }
    
              leaf received-good-bytes {
                type uint64;
                description
                  "Total octets of all good frames";
              }
    
              leaf received-total-frames {
                type uint64;
                description
                  "All frames, good or bad";
              }
    
              leaf received8021q-frames {
                type uint64;
                description "All 802.1Q frames";
              }
    
              leaf received-pause-frames {
                type uint64;
                description "All pause frames";
              }
    
              leaf received-unknown-opcodes {
                type uint64;
                description
                  "Unsupported MAC Control frames";
              }
    
              leaf received-total64-octet-frames {
                type uint64;
                description
                  "All 64 Octet Frame Count";
              }
    
              leaf received-total-octet-frames-from65-to127 {
                type uint64;
                description
                  "All 65-127 Octet Frame Count";
              }
    
              leaf received-total-octet-frames-from128-to255 {
                type uint64;
                description
                  "All 128-255 Octet Frame Count";
              }
    
              leaf received-total-octet-frames-from256-to511 {
                type uint64;
                description
                  "All 256-511 Octet Frame Count";
              }
    
              leaf received-total-octet-frames-from512-to1023 {
                type uint64;
                description
                  "All 512-1023 Octet Frame Count";
              }
    
              leaf received-total-octet-frames-from1024-to1518 {
                type uint64;
                description
                  "All 1024-1518 Octet Frame Count";
              }
    
              leaf received-total-octet-frames-from1519-to-max {
                type uint64;
                description
                  "All > 1518 Octet Frame Count";
              }
    
              leaf received-good-frames {
                type uint64;
                description
                  "Number of well formed packets received";
              }
    
              leaf received-unicast-frames {
                type uint64;
                description
                  "Number of unicast packets received ";
              }
    
              leaf received-multicast-frames {
                type uint64;
                description
                  "Number of multicast packets received";
              }
    
              leaf received-broadcast-frames {
                type uint64;
                description
                  "Number of broadcast packets received";
              }
    
              leaf number-of-buffer-overrun-packets-dropped {
                type uint64;
                description
                  "Drops due to buffer overrun";
              }
    
              leaf number-of-aborted-packets-dropped {
                type uint64;
                description
                  "Drops due to packet abort";
              }
    
              leaf numberof-invalid-vlan-id-packets-dropped {
                type uint64;
                description
                  "Drops due to invalid VLAN id";
              }
    
              leaf invalid-dest-mac-drop-packets {
                type uint64;
                description
                  "Drops due to the destination MAC not matching";
              }
    
              leaf invalid-encap-drop-packets {
                type uint64;
                description
                  "Drops due to the encapsulation or ether type not
    matching";
              }
    
              leaf number-of-miscellaneous-packets-dropped {
                type uint64;
                description
                  "Any other drops not counted";
              }
    
              leaf dropped-giant-packets-greaterthan-mru {
                type uint64;
                description
                  "Good frames > MRU, dropped";
              }
    
              leaf dropped-ether-stats-undersize-pkts {
                type uint64;
                description
                  "Good frames < 64 Octet, dropped";
              }
    
              leaf dropped-jabbers-packets-greaterthan-mru {
                type uint64;
                description
                  "Bad Frames > MRU, dropped";
              }
    
              leaf dropped-ether-stats-fragments {
                type uint64;
                description
                  "Bad Frames < 64 Octet, dropped";
              }
    
              leaf dropped-packets-with-crc-align-errors {
                type uint64;
                description
                  "Frames 64 - MRU with CRC error";
              }
    
              leaf ether-stats-collisions {
                type uint64;
                description
                  "All collision events";
              }
    
              leaf symbol-errors {
                type uint64;
                description
                  "Number of symbol errors detected";
              }
    
              leaf dropped-miscellaneous-error-packets {
                type uint64;
                description
                  "Any other errors not counted";
              }
    
              leaf rfc2819-ether-stats-oversized-pkts {
                type uint64;
                description
                  "RFC2819 etherStatsOversizedPkts";
              }
    
              leaf rfc2819-ether-stats-jabbers {
                type uint64;
                description
                  "RFC2819 etherStatsJabbers";
              }
    
              leaf rfc2819-ether-stats-crc-align-errors {
                type uint64;
                description
                  "RFC2819 etherStatsCRCAlignErrors";
              }
    
              leaf rfc3635dot3-stats-alignment-errors {
                type uint64;
                description
                  "RFC3635 dot3StatsAlignmentErrors";
              }
    
              leaf total-bytes-transmitted {
                type uint64;
                description
                  "Total octets of all frames";
              }
    
              leaf total-good-bytes-transmitted {
                type uint64;
                description
                  "Total octets of all good frames";
              }
    
              leaf total-frames-transmitted {
                type uint64;
                description
                  "All frames, good or bad";
              }
    
              leaf transmitted8021q-frames {
                type uint64;
                description "All 802.1Q frames";
              }
    
              leaf transmitted-total-pause-frames {
                type uint64;
                description "All pause frames";
              }
    
              leaf transmitted-total64-octet-frames {
                type uint64;
                description
                  "All 64 Octet Frame Count";
              }
    
              leaf transmitted-total-octet-frames-from65-to127 {
                type uint64;
                description
                  "All 65-127 Octet Frame Count";
              }
    
              leaf transmitted-total-octet-frames-from128-to255 {
                type uint64;
                description
                  "All 128-255 Octet Frame Count";
              }
    
              leaf transmitted-total-octet-frames-from256-to511 {
                type uint64;
                description
                  "All 256-511 Octet Frame Count";
              }
    
              leaf transmitted-total-octet-frames-from512-to1023 {
                type uint64;
                description
                  "All 512-1023 Octet Frame Count";
              }
    
              leaf transmitted-total-octet-frames-from1024-to1518 {
                type uint64;
                description
                  "All 1024-1518 Octet Frame Count";
              }
    
              leaf transmitted-total-octet-frames-from1518-to-max {
                type uint64;
                description
                  "All > 1518 Octet Frame Count";
              }
    
              leaf transmitted-good-frames {
                type uint64;
                description
                  "Number of well formed packets transmitted";
              }
    
              leaf transmitted-unicast-frames {
                type uint64;
                description
                  "Number of unicast packets transmitted";
              }
    
              leaf transmitted-multicast-frames {
                type uint64;
                description
                  "Number of multicast packets transmitted";
              }
    
              leaf transmitted-broadcast-frames {
                type uint64;
                description
                  "Number of broadcast packets transmitted";
              }
    
              leaf buffer-underrun-packet-drops {
                type uint64;
                description
                  "Drops due to buffer underrun";
              }
    
              leaf aborted-packet-drops {
                type uint64;
                description
                  "Drops due to packet abort";
              }
    
              leaf uncounted-dropped-frames {
                type uint64;
                description
                  "Any other drops not counted";
              }
    
              leaf miscellaneous-output-errors {
                type uint64;
                description
                  "Any other errors not counted";
              }
            }  // list statistic
          }  // container statistics
    
          container interfaces {
            description
              "Ethernet controller info table";
            list interface {
              key "interface-name";
              description
                "Ethernet controller information";
              leaf interface-name {
                type xr:Interface-name;
                description
                  "The name of the interface";
              }
    
              container phy-info {
                description "PHY information";
                container phy-details {
                  description
                    "Details about the PHY";
                  container lane-field-validity {
                    description
                      "Digital Optical Monitoring (per lane
    information) validity";
                    leaf wavelength-valid {
                      type int32;
                      description
                        "The wavelength 'per lane' field is valid";
                    }
    
                    leaf transmit-power-valid {
                      type int32;
                      description
                        "The transmit power 'per lane' field is valid";
                    }
    
                    leaf receive-power-valid {
                      type int32;
                      description
                        "The receive power 'per lane' field is valid";
                    }
    
                    leaf laser-bias-valid {
                      type int32;
                      description
                        "The laser bias 'per lane' field is valid";
                    }
                  }  // container lane-field-validity
    
                  container dig-opt-mon-alarm-thresholds {
                    description
                      "Digital Optical Monitoring alarm thresholds";
                    container field-validity {
                      description
                        "Indicates which of the DOM threshold fields are
    valid";
                      leaf temperature-valid {
                        type int32;
                        description
                          "The temperature fields are valid";
                      }
    
                      leaf voltage-valid {
                        type int32;
                        description
                          "The voltage fields are valid";
                      }
    
                      leaf laser-bias-valid {
                        type int32;
                        description
                          "The laser bias fields are valid";
                      }
    
                      leaf transmit-power-valid {
                        type int32;
                        description
                          "The transmit power fields are valid";
                      }
    
                      leaf receive-power-valid {
                        type int32;
                        description
                          "The receive power fields are valid";
                      }
                    }  // container field-validity
    
                    leaf transceiver-temperature-alarm-high {
                      type int32;
                      description
                        "Transceiver high temperature alarm threshold
    (mDegrees C)";
                    }
    
                    leaf transceiver-temperature-warning-high {
                      type int32;
                      description
                        "Transceiver high temperature warning threshold
    (mDegrees C)";
                    }
    
                    leaf transceiver-temperature-warning-low {
                      type int32;
                      description
                        "Transceiver low temperature warning threshold
    (mDegrees C)";
                    }
    
                    leaf transceiver-temperature-alarm-low {
                      type int32;
                      description
                        "Transceiver low temperature alarm threshold
    (mDegrees C)";
                    }
    
                    leaf transceiver-voltage-alarm-high {
                      type uint32;
                      description
                        "Transceiver high voltage alarm threshold (mV)";
                    }
    
                    leaf transceiver-voltage-warning-high {
                      type uint32;
                      description
                        "Transceiver high voltage warning threshold (mV)";
                    }
    
                    leaf transceiver-voltage-warning-low {
                      type uint32;
                      description
                        "Transceiver low voltage warning threshold (mV)";
                    }
    
                    leaf transceiver-voltage-alarm-low {
                      type uint32;
                      description
                        "Transceiver low voltage alarm threshold (mV)";
                    }
    
                    leaf laser-bias-alarm-high {
                      type uint32;
                      description
                        "Laser bias high alarm threshold (uA)";
                    }
    
                    leaf laser-bias-warning-high {
                      type uint32;
                      description
                        "Laser bias high warning threshold (uA)";
                    }
    
                    leaf laser-bias-warning-low {
                      type uint32;
                      description
                        "Laser bias low warning threshold (uA)";
                    }
    
                    leaf laser-bias-alarm-low {
                      type uint32;
                      description
                        "Laser bias low alarm threshold (uA)";
                    }
    
                    leaf optical-transmit-power-alarm-high {
                      type uint32;
                      description
                        "High optical transmit power alarm threshold (uW)";
                    }
    
                    leaf optical-transmit-power-warning-high {
                      type uint32;
                      description
                        "High optical transmit power warning threshold
    (uW)";
                    }
    
                    leaf optical-transmit-power-warning-low {
                      type uint32;
                      description
                        "Low optical transmit power warning threshold
    (uW)";
                    }
    
                    leaf optical-transmit-power-alarm-low {
                      type uint32;
                      description
                        "Low optical transmit power alarm threshold (uW)";
                    }
    
                    leaf optical-receive-power-alarm-high {
                      type uint32;
                      description
                        "High optical receive power alarm threshold (uW)";
                    }
    
                    leaf optical-receive-power-warning-high {
                      type uint32;
                      description
                        "High optical receive power warning threshold
    (uW)";
                    }
    
                    leaf optical-receive-power-warning-low {
                      type uint32;
                      description
                        "Low optical receive power warning threshold (uW)";
                    }
    
                    leaf optical-receive-power-alarm-low {
                      type uint32;
                      description
                        "Low optical receive power alarm threshold (uW)";
                    }
    
                    leaf power-m-factor {
                      type uint32;
                      description
                        "Power multipication factor for tx/rx
    alarm/warning";
                    }
    
                    leaf multipication-factor {
                      type uint32;
                      description
                        "Multipication factor applicable for certain
    Platforms";
                    }
                  }  // container dig-opt-mon-alarm-thresholds
    
                  container dig-opt-mon-alarms {
                    description
                      "Digital Optical Monitoring alarms";
                    leaf transceiver-temperature {
                      type Ether-dom-alarm;
                      description
                        "Transceiver Optics Temperature Alarm State";
                    }
    
                    leaf transceiver-voltage {
                      type Ether-dom-alarm;
                      description
                        "Transceiver Voltage Alarm State";
                    }
    
                    leaf transmit-laser-power {
                      type Ether-dom-alarm;
                      description
                        "Transmit Laser Power Alarm State";
                    }
    
                    leaf received-laser-power {
                      type Ether-dom-alarm;
                      description
                        "Received Optical Power Alarm State";
                    }
    
                    leaf laser-bias-current {
                      type Ether-dom-alarm;
                      description
                        "Laser Bias Current Alarm State";
                    }
                  }  // container dig-opt-mon-alarms
    
                  leaf vendor {
                    type string;
                    description
                      "Name of the port optics manufacturer";
                  }
    
                  leaf vendor-part-number {
                    type string;
                    description
                      "Part number for the port optics";
                  }
    
                  leaf vendor-serial-number {
                    type string;
                    description
                      "Serial number for the port optics";
                  }
    
                  leaf transceiver-temperature {
                    type int32;
                    description
                      "The temperature of the transceiver (mDegrees C)";
                  }
    
                  leaf transceiver-voltage {
                    type int32;
                    description
                      "The input voltage to the transceiver (mV)";
                  }
    
                  leaf transceiver-tx-power {
                    type int32;
                    description
                      "The transceiver transmit laser power (uW)";
                  }
    
                  leaf transceiver-rx-power {
                    type int32;
                    description
                      "The transceiver receive optical power (uW)";
                  }
    
                  leaf transceiver-tx-bias {
                    type int32;
                    description
                      "The laser bias of the transceiver (uA)";
                  }
    
                  leaf optics-wavelength {
                    type uint32;
                    description
                      "Wavelength of the optics being used in nm * 1000";
                  }
    
                  leaf optics-type {
                    type string;
                    description
                      "Optics module type";
                  }
    
                  leaf revision-number {
                    type string;
                    description
                      "Module revision number";
                  }
    
                  list lane {
                    description
                      "Digital Optical Monitoring (per lane
    information)";
                    container dig-opt-mon-alarm {
                      description
                        "Digital Optical Monitoring alarms";
                      leaf transmit-laser-power {
                        type Ether-dom-alarm;
                        description
                          "Transmit Laser Power Alarm";
                      }
    
                      leaf received-laser-power {
                        type Ether-dom-alarm;
                        description
                          "Received Optical Power Alarm";
                      }
    
                      leaf laser-bias-current {
                        type Ether-dom-alarm;
                        description
                          "Laser Bias Current Alarm";
                      }
                    }  // container dig-opt-mon-alarm
    
                    leaf center-wavelength {
                      type uint32;
                      description
                        "Center Wavelength (nm*1000)";
                    }
    
                    leaf transmit-laser-power {
                      type int32;
                      description
                        "Transmit Laser Power (dBm*1000)";
                    }
    
                    leaf received-laser-power {
                      type int32;
                      description
                        "Received Optical Power (dBm*1000)";
                    }
    
                    leaf laser-bias-current {
                      type uint32;
                      description
                        "Laser Bias Current (uAmps)";
                    }
    
                    leaf lane-id {
                      type uint32;
                      description
                        "Numerical identifier for this lane";
                    }
                  }  // list lane
                }  // container phy-details
    
                container fec-details {
                  description
                    "Forward Error Correction information";
                  leaf fec {
                    type Ethernet-fec;
                    description
                      "Port operational FEC type";
                  }
    
                  leaf corrected-codeword-count {
                    type uint64;
                    description
                      "Corrected codeword error count, if FEC is
    supported";
                  }
    
                  leaf uncorrected-codeword-count {
                    type uint64;
                    description
                      "Uncorrected codeword error count, if FEC is
    supported";
                  }
                }  // container fec-details
    
                leaf media-type {
                  type Ethernet-media;
                  description "Port media type";
                }
    
                leaf phy-present {
                  type Ether-phy-present;
                  description "Presence of PHY";
                }
    
                leaf loopback {
                  type Ethernet-loopback;
                  description
                    "Port operational loopback";
                }
    
                leaf holdoff-time {
                  type uint32;
                  description
                    "Ethernet port Holdoff Time";
                }
    
                list extended-loopback {
                  description
                    "Port operational extended loopback";
                  leaf level {
                    type uint32;
                    description "Level";
                  }
    
                  leaf loopback {
                    type Ethernet-loopback;
                    description
                      "Port operational loopback";
                  }
                }  // list extended-loopback
              }  // container phy-info
    
              container layer1-info {
                description
                  "Layer 1 information";
                container autoneg {
                  description
                    "Port autonegotiation configuration settings";
                  leaf autoneg-enabled {
                    type int32;
                    description
                      "TRUE if autonegotiation is enabled";
                  }
    
                  leaf mask {
                    type Ether-autoneg-mask;
                    description
                      "Validity mask: 0x1 speed, 0x2 duplex, 0x4
    flowcontrol, 0x8 fec";
                  }
    
                  leaf speed {
                    type Ethernet-speed;
                    description
                      "Restricted speed (if relevant bit is set in
    mask)";
                  }
    
                  leaf duplex {
                    type Ethernet-duplex;
                    description
                      "Restricted duplex (if relevant bit is set in
    mask)";
                  }
    
                  leaf flowcontrol {
                    type Ether-flowcontrol;
                    description
                      "Restricted flowcontrol (if relevant bit is set
    in mask)";
                  }
    
                  leaf config-override {
                    type int32;
                    description
                      "If true, configuration overrides negotiated
    settings.  If false, negotiated settings in
    effect";
                  }
    
                  leaf fec {
                    type Ethernet-fec;
                    description
                      "Restricted FEC (if revelevant bit is set in
    mask)";
                  }
                }  // container autoneg
    
                container current-alarms {
                  description
                    "List of l1 Current alarms generated";
                  leaf received-loss-of-signal-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Received Loss of Signal";
                  }
    
                  leaf pcs-loss-of-block-lock-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of PCS Loss of Block Lock";
                  }
    
                  leaf local-fault-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Local Fault";
                  }
    
                  leaf remote-fault-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Remote Fault";
                  }
    
                  leaf sd-ber-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of SD-BER";
                  }
    
                  leaf sf-ber-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of SF-BER";
                  }
    
                  leaf loss-of-synchronization-data-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Loss of Synchronization Data
    Alarm";
                  }
    
                  leaf hi-ber-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Hi-BER";
                  }
    
                  leaf squelch-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Squelch";
                  }
    
                  leaf rx-opd-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Rx OPD Alarm";
                  }
    
                  leaf hi-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for Hi-SER";
                  }
    
                  leaf deg-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for degraded SER";
                  }
    
                  leaf local-deg-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for Local degrade SER";
                  }
    
                  leaf remote-deg-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for Remote degrade SER";
                  }
                }  // container current-alarms
    
                container previous-alarms {
                  description
                    "List of Previous alarms generated";
                  leaf received-loss-of-signal-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Received Loss of Signal";
                  }
    
                  leaf pcs-loss-of-block-lock-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of PCS Loss of Block Lock";
                  }
    
                  leaf local-fault-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Local Fault";
                  }
    
                  leaf remote-fault-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Remote Fault";
                  }
    
                  leaf sd-ber-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of SD-BER";
                  }
    
                  leaf sf-ber-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of SF-BER";
                  }
    
                  leaf loss-of-synchronization-data-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Loss of Synchronization Data
    Alarm";
                  }
    
                  leaf hi-ber-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Hi-BER";
                  }
    
                  leaf squelch-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Squelch";
                  }
    
                  leaf rx-opd-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state of Rx OPD Alarm";
                  }
    
                  leaf hi-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for Hi-SER";
                  }
    
                  leaf deg-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for degraded SER";
                  }
    
                  leaf local-deg-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for Local degrade SER";
                  }
    
                  leaf remote-deg-ser-alarm {
                    type Eth-ctrlr-alarm-state;
                    description
                      "Alarm state for Remote degrade SER";
                  }
                }  // container previous-alarms
    
                container error-counts {
                  description
                    "Statistics for detected errors";
                  leaf sync-header-errors {
                    type uint64;
                    description
                      "Sync-header error count";
                  }
    
                  leaf pcsbip-errors {
                    type uint64;
                    description
                      "PCS BIP error count";
                  }
                }  // container error-counts
    
                container ber-monitoring {
                  description
                    "BER monitoring details";
                  container settings {
                    description
                      "The BER monitoring settings to be applied";
                    leaf signal-degrade-threshold {
                      type uint32;
                      description
                        "BER threshold for signal to degrade";
                    }
    
                    leaf signal-degrade-alarm {
                      type int32;
                      description
                        "Report alarm to indicate signal degrade";
                    }
    
                    leaf signal-fail-threshold {
                      type uint32;
                      description
                        "BER threshold for signal to fail";
                    }
    
                    leaf signal-fail-alarm {
                      type int32;
                      description
                        "Report alarm to indicate signal failure";
                    }
    
                    leaf signal-remote-fault {
                      type int32;
                      description
                        "Whether drivers should signal remote faults";
                    }
                  }  // container settings
    
                  container state {
                    description "The BER state";
                    leaf sd-current-ber {
                      type uint32;
                      description
                        "Current SD-BER";
                    }
    
                    leaf sf-current-ber {
                      type uint32;
                      description
                        "Current SF-BER";
                    }
                  }  // container state
    
                  leaf supported {
                    type int32;
                    description
                      "Whether or not BER monitoring is supported";
                  }
                }  // container ber-monitoring
    
                container opd-monitoring {
                  description
                    "OPD monitoring details";
                  container settings {
                    description
                      "The OPD monitoring settings to be applied";
                    leaf received-optical-power-degrade-threshold-set {
                      type int32;
                      description
                        "Rx-OPD alarm threshold set?";
                    }
    
                    leaf received-optical-power-degrade-threshold {
                      type int32;
                      description
                        "Rx-OPD alarm threshold value";
                    }
                  }  // container settings
    
                  leaf supported {
                    type int32;
                    description
                      "Whether or not OPD monitoring is supported";
                  }
                }  // container opd-monitoring
    
                container pfc-info {
                  description
                    "Priority flow control information";
                  leaf priority-flowcontrol {
                    type Ether-pfc;
                    description
                      "Port operational priority flow control";
                  }
    
                  leaf priority-enabled-bitmap {
                    type uint8;
                    description
                      "Priority bitmap";
                  }
    
                  leaf total-rx-frames {
                    type uint64;
                    description
                      "Total RX Frame counts";
                  }
    
                  leaf total-tx-frames {
                    type uint64;
                    description
                      "Total TX Frame counts";
                  }
    
                  leaf total-rx-drop-data-frames {
                    type uint64;
                    description
                      "Total RX Dropped Data Frames";
                  }
    
                  leaf per-tc-rx-drop-supported {
                    type uint8;
                    description
                      "Indicates support for per TC RX drop Data frames";
                  }
    
                  leaf per-tc-tx-frames-not-supported {
                    type uint8;
                    description
                      "Indicates support for per TC tx frames";
                  }
    
                  list rx-frame {
                    max-elements 8;
                    description
                      "RX Frame counts";
                    leaf entry {
                      type uint64;
                      description
                        "RX Frame counts";
                    }
                  }  // list rx-frame
    
                  list tx-frame {
                    max-elements 8;
                    description
                      "TX Frame counts";
                    leaf entry {
                      type uint64;
                      description
                        "TX Frame counts";
                    }
                  }  // list tx-frame
    
                  list rx-drop-data-frame {
                    max-elements 8;
                    description
                      "RX Dropped Data Frames";
                    leaf entry {
                      type uint64;
                      description
                        "RX Dropped Data Frames";
                    }
                  }  // list rx-drop-data-frame
                }  // container pfc-info
    
                container pfcwd-info {
                  description
                    "Priority flow control watchdog information";
                  leaf watchdog-state {
                    type string {
                      length "0..8";
                    }
                    description "Watchdog State";
                  }
    
                  leaf watchdog-traffic-class-enable-mask {
                    type uint8;
                    description "WSTCMask";
                  }
    
                  list mode {
                    max-elements 3;
                    description
                      "PFC Watchdog configured mode";
                    leaf entry {
                      type Ether-pfc-wd;
                      description
                        "PFC Watchdog configured mode";
                    }
                  }  // list mode
    
                  list interval {
                    max-elements 3;
                    description
                      "PFC Watchdog Interval configured";
                    leaf entry {
                      type uint32;
                      description
                        "PFC Watchdog Interval configured";
                    }
                  }  // list interval
    
                  list shutdown-multiplier {
                    max-elements 3;
                    description
                      "PFC Watchdog Shutdown Multiplier configured";
                    leaf entry {
                      type uint32;
                      description
                        "PFC Watchdog Shutdown Multiplier configured";
                    }
                  }  // list shutdown-multiplier
    
                  list auto-restore-multiplier {
                    max-elements 3;
                    description
                      "PFC Watchdog Auto Restore Multiplier configured";
                    leaf entry {
                      type uint32;
                      description
                        "PFC Watchdog Auto Restore Multiplier configured";
                    }
                  }  // list auto-restore-multiplier
    
                  list fixed-restore-multiplier {
                    max-elements 3;
                    description
                      "PFC Watchdog Fixed Restore Multiplier configured";
                    leaf entry {
                      type uint32;
                      description
                        "PFC Watchdog Fixed Restore Multiplier
    configured";
                    }
                  }  // list fixed-restore-multiplier
    
                  list qos-q-num {
                    max-elements 8;
                    description "Qos Q Number";
                    leaf entry {
                      type uint32;
                      description "Qos Q Number";
                    }
                  }  // list qos-q-num
    
                  list watchdog-event {
                    max-elements 8;
                    description "WD events";
                    leaf entry {
                      type uint64;
                      description "WD events";
                    }
                  }  // list watchdog-event
    
                  list shutdown-event {
                    max-elements 8;
                    description
                      "Shutdown Events";
                    leaf entry {
                      type uint64;
                      description
                        "Shutdown Events";
                    }
                  }  // list shutdown-event
    
                  list auto-restore-event {
                    max-elements 8;
                    description "Restore Events";
                    leaf entry {
                      type uint64;
                      description
                        "Restore Events";
                    }
                  }  // list auto-restore-event
    
                  list auto-restore-and-stuck-event {
                    max-elements 8;
                    description
                      "Restore And Stuck Events";
                    leaf entry {
                      type uint64;
                      description
                        "Restore And Stuck Events";
                    }
                  }  // list auto-restore-and-stuck-event
    
                  list auto-restore-and-stuck-instantaneous-event {
                    max-elements 8;
                    description
                      "Restore And Stuck instatneous Events";
                    leaf entry {
                      type uint64;
                      description
                        "Restore And Stuck instatneous Events";
                    }
                  }  // list auto-restore-and-stuck-instantaneous-event
    
                  list fixed-restore-event {
                    max-elements 8;
                    description "Restore Events";
                    leaf entry {
                      type uint64;
                      description
                        "Restore Events";
                    }
                  }  // list fixed-restore-event
    
                  list total-dropped-packet {
                    max-elements 8;
                    description
                      "Total dropped Packets";
                    leaf entry {
                      type uint64;
                      description
                        "Total dropped Packets";
                    }
                  }  // list total-dropped-packet
    
                  list dropped-packet {
                    max-elements 8;
                    description
                      "Dropped Packets";
                    leaf entry {
                      type uint64;
                      description
                        "Dropped Packets";
                    }
                  }  // list dropped-packet
                }  // container pfcwd-info
    
                leaf link-state {
                  type Ether-link-state;
                  description
                    "Link state information of ethernet port";
                }
    
                leaf led-state {
                  type Ether-led-state;
                  description "State of the LED";
                }
    
                leaf speed {
                  type Ethernet-speed;
                  description
                    "Port operational speed";
                }
    
                leaf duplex {
                  type Ethernet-duplex;
                  description
                    "Port operational duplexity";
                }
    
                leaf flowcontrol {
                  type Ether-flowcontrol;
                  description
                    "Port operational flow control";
                }
    
                leaf ipg {
                  type Ethernet-ipg;
                  description
                    "Port operational inter-packet-gap";
                }
    
                leaf laser-squelch-enabled {
                  type boolean;
                  description
                    "Laser Squelch - TRUE if enabled";
                }
    
                leaf bandwidth-utilization {
                  type uint32;
                  units "percentage";
                  description
                    "Bandwidth utilization (hundredths of a percent)";
                }
    
                leaf bandwidth {
                  type uint64;
                  description
                    "Port operational bandwidth";
                }
    
                leaf frame-preemption {
                  type int32;
                  description
                    "Indicates whether Frame preemption is enabled";
                }
    
                leaf neighbor-mac-address {
                  type Mac-addr;
                  description
                    "MAC addresses of the peer connection ";
                }
              }  // container layer1-info
    
              container mac-info {
                description
                  "MAC Layer information";
                container unicast-mac-filters {
                  description
                    "Port unicast MAC filter information";
                  leaf-list unicast-mac-address {
                    type Mac-addr;
                    description
                      "MAC addresses in the unicast ingress destination
    MAC filter";
                  }
                }  // container unicast-mac-filters
    
                container multicast-mac-filters {
                  description
                    "Port multicast MAC filter information";
                  leaf multicast-promiscuous {
                    type boolean;
                    description
                      "Whether the port is in multicast promiscuous
    mode";
                  }
    
                  list multicast-mac-address {
                    description
                      "MAC addresses in the multicast ingress
    destination MAC filter";
                    leaf mac-address {
                      type Mac-addr;
                      description "MAC address";
                    }
    
                    leaf mask {
                      type Mac-addr;
                      description
                        "Mask for this MAC address";
                    }
                  }  // list multicast-mac-address
                }  // container multicast-mac-filters
    
                leaf mtu {
                  type uint32;
                  description
                    "Port operational MTU";
                }
    
                leaf mru {
                  type uint32;
                  description
                    "Port operational MRU";
                }
    
                leaf burned-in-mac-address {
                  type Mac-addr;
                  description
                    "Port Burned-In MAC address";
                }
    
                leaf operational-mac-address {
                  type Mac-addr;
                  description
                    "Port operational MAC address";
                }
              }  // container mac-info
    
              container transport-info {
                description
                  "Transport state information";
                leaf maintenance-mode-enabled {
                  type boolean;
                  description
                    "Maintenance Mode - TRUE if enabled";
                }
    
                leaf ains-status {
                  type Ether-ains-status;
                  description "AINS Soak status";
                }
    
                leaf total-duration {
                  type uint32;
                  units "minute";
                  description
                    "Total duration (minutes) of AINS soak timer";
                }
    
                leaf remaining-duration {
                  type uint32;
                  units "second";
                  description
                    "Remaining duration (seconds) of AINS soak timer";
                }
              }  // container transport-info
    
              leaf admin-state {
                type Ethernet-port-enable;
                description
                  "Port Administrative State";
              }
    
              leaf oper-state-up {
                type boolean;
                description
                  "Port Operational state - TRUE if up";
              }
            }  // list interface
          }  // container interfaces
    
          container berts {
            description
              "Ethernet controller BERT table";
            list bert {
              key "interface-name";
              description
                "Ethernet BERT information";
              leaf interface-name {
                type xr:Interface-name;
                description
                  "The name of the interface";
              }
    
              container bert-status {
                description
                  "Current test status";
                leaf bert-state-enabled {
                  type boolean;
                  description "State";
                }
    
                leaf data-availability {
                  type Ethernet-bert-mask;
                  description
                    "Flag indicating available data";
                }
    
                leaf receive-count {
                  type uint64;
                  description
                    "Receive count (if 0x1 set in flag)";
                }
    
                leaf transmit-count {
                  type uint64;
                  description
                    "Transmit count (if 0x2 set in flag)";
                }
    
                leaf receive-errors {
                  type uint64;
                  description
                    "Received errors (if 0x4 set in flag)";
                }
    
                leaf error-type {
                  type Ethernet-bert-err-cnt;
                  description
                    "Bit, block or frame error";
                }
    
                leaf test-pattern {
                  type Ethernet-bert-pattern;
                  description
                    "Bert Test pattern as per IEEE";
                }
    
                leaf device-under-test {
                  type Ethernet-dev;
                  description
                    "Device being tested";
                }
    
                leaf interface-device {
                  type Ethernet-dev-if;
                  description
                    "Interface being tested";
                }
              }  // container bert-status
    
              leaf time-left {
                type uint32;
                units "second";
                description
                  "Remaining time for this test in seconds";
              }
    
              leaf port-bert-interval {
                type uint32;
                description "Port BERT interval";
              }
            }  // list bert
          }  // container berts
        }  // container ethernet-interface
      }  // module Cisco-IOS-XR-drivers-media-eth-oper
    

© 2023 YumaWorks, Inc. All rights reserved.