Cisco-IOS-XR-sysadmin-ethsw-esdma-mlap-iosxrwbd

This module contains the YANG definitions for the Cisco IOS-XR SysAdmin 'show controller switch mlap' commands. Copyright(c) 20...

  • Version: 2021-01-07

    Cisco-IOS-XR-sysadmin-ethsw-esdma-mlap-iosxrwbd@2021-01-07


    
      module Cisco-IOS-XR-sysadmin-ethsw-esdma-mlap-iosxrwbd {
    
        yang-version 1;
    
        namespace
          "http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-ethsw-esdma-mlap-iosxrwbd";
    
        prefix esdma_mlap;
    
        import ietf-yang-types {
          prefix ietf;
        }
        import Cisco-IOS-XR-sysadmin-ethsw-esdma-types {
          prefix esdma_types;
        }
        import Cisco-IOS-XR-sysadmin-show-trace {
          prefix show_trace;
        }
        import cisco-semver {
          prefix semver;
        }
    
        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 the YANG definitions
    for the Cisco IOS-XR SysAdmin
    'show controller switch mlap' commands.
    
    Copyright(c) 2020 by Cisco Systems, Inc.
    All rights reserved.
    
    Copyright (c) 2012-2020 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2021-01-07" {
          description
            "Added new leaves for debuggability";
        }
    
        revision "2020-05-27" {
          description
            "Initial revision for changes to whitebox esdma-mlap cli outputs";
        }
    
        semver:module-version "1.0.0";
    
        grouping mlap-endpoint-state-info {
          leaf valid {
            type boolean;
            description
              "Indicates whether this endpoint information contains valid data.";
          }
    
          leaf chassis-type {
            when "../valid = 'true'";
            type esdma_types:esdma-rack-type-enum;
            description
              "The chassis type of this endpoint is in";
          }
    
          leaf endpoint-type {
            when "../valid = 'true'";
            type esdma_types:esdma-switch-type-enum;
            description
              "The type of endpoint this endpoint switch is on";
          }
    
          leaf endpoint-slot-number {
            when "../valid = 'true'";
            type uint32;
            description
              "Slot number of this endpoint";
          }
    
          leaf endpoint-switch-number {
            when "../valid = 'true'";
            type uint32;
            description
              "Switch number for the endpoint";
          }
    
          leaf endpoint-switch-port-number {
            when "../valid = 'true'";
            type uint32;
            description
              "Port number on the switch for the endpoint";
          }
    
          leaf endpoint-switch-port-name {
            when "../valid = 'true'";
            type string;
            description
              "Port number on the switch for the endpoint";
          }
    
          leaf endpoint-chassis-serial-number {
            when "../valid = 'true'";
            type string;
            description
              "Serial number for the endpoint";
          }
    
          leaf mlap-state {
            when "../valid = 'true'";
            type esdma_types:mlap-state-enum;
            description
              "Protocol invoked port state";
          }
    
          leaf inter-fcc_sw-port {
            when "../valid = 'true'";
            type boolean;
            description
              "Indicates whether this port is used for an inter-F-SW connection";
          }
    
          leaf fcc_sw-indirectly-reachable {
            when "../valid = 'true'";
            type boolean;
            description
              "Indicates whether this port can indirectly reach an F-SW";
          }
        }  // grouping mlap-endpoint-state-info
    
        grouping mlap-internal-details {
          container mlap-internal-details {
            container info {
              leaf port-owner {
                type esdma_types:esdma-cpu;
                description
                  "Indicates which switch data path the port belongs to";
              }
    
              leaf current-active-owner {
                type esdma_types:esdma-cpu;
                description
                  "Indicates which switch is currently mastering chassis data";
              }
    
              leaf mlap-peer-flags {
                type bits {
                  bit Valid {
                    position 0;
                  }
                  bit FCC-Active {
                    position 1;
                  }
                  bit Force-Active {
                    position 2;
                  }
                  bit Ignore-Data {
                    position 31;
                  }
                }
                description
                  "Peer's port MLAP protocol flags";
              }
    
              leaf mlap-peer-idle-count {
                type uint32;
                description
                  "Time intervals peer has not updated information";
              }
    
              leaf my-connection-active-mask {
                type uint64;
                description
                  "My port active mask view";
              }
    
              leaf peer-connection-active-mask {
                type uint64;
                description
                  "Peer's port active mask view";
              }
    
              leaf endpoint-card-type {
                type esdma_types:mlap-ep-type;
                description
                  "Indicates the high-level card type this switch port is peering with";
              }
    
              leaf endpoint-mac-address {
                type ietf:mac-address;
                description
                  "MAC addess of device of the protocol peer for this switch port";
              }
            }  // container info
          }  // container mlap-internal-details
        }  // grouping mlap-internal-details
    
        grouping mlap-external-details {
          container mlap-external-details {
            container local-state-information {
              description
                "MLAP state information from this port's perspective";
              uses mlap-endpoint-state-info;
            }  // container local-state-information
    
            container peer-state-information {
              description
                "MLAP state information from peer port's perspective";
              uses mlap-endpoint-state-info;
            }  // container peer-state-information
    
            container peer-other-link-state-information {
              description
                "MLAP state information for peer's other uplink perspective (RP/SC only)";
              uses mlap-endpoint-state-info;
            }  // container peer-other-link-state-information
          }  // container mlap-external-details
        }  // grouping mlap-external-details
    
        grouping mlap-detail-data-iosxrwbd {
          container detail {
            list location {
              key "rack card switch-id";
              leaf rack {
                type esdma_types:esdma-rack-num-enum;
              }
    
              leaf card {
                type esdma_types:esdma-cpu;
              }
    
              leaf switch-id {
                type esdma_types:esdma-switch-type-enum;
                description "Switch type";
              }
    
              list port-iter {
                key "port";
                leaf port {
                  type esdma_types:esdma-switch-port-type;
                  description "Switch port";
                }
    
                container gen-data {
                  leaf serial-num {
                    type string;
                    description
                      "Rack serial number";
                  }
    
                  leaf connects-to {
                    type string;
                    description
                      "Indicates what this port connects to";
                  }
    
                  leaf phys-state {
                    type esdma_types:esdma-switch-port-state;
                    description
                      "Physical port state";
                  }
    
                  leaf admin-state {
                    type esdma_types:esdma-switch-port-state;
                    description
                      "Administrative port state";
                  }
    
                  leaf protocol-state {
                    type esdma_types:mlap-state-enum;
                    description
                      "Protocol invoked port state";
                  }
    
                  leaf forwarding {
                    type esdma_types:switch-forwarding-state;
                    description
                      "Indicates whether this port is allowed to forward traffic";
                  }
    
                  leaf mlap-protocol {
                    type esdma_types:mlap-protocol-enum;
                    description
                      "Indicates whether the internal or external MLAP protocol is active on this port";
                  }
    
                  leaf protocol-pkt-sent {
                    type uint64;
                    description
                      "Number of protocol packets sent";
                  }
    
                  leaf protocol-pkt-recv {
                    type uint64;
                    description
                      "Number of protocol packets received";
                  }
    
                  leaf protocol-send-error {
                    type uint64;
                    description
                      "Number of protocol packet send errors";
                  }
    
                  leaf protocol-recv-error {
                    type uint64;
                    description
                      "Number of protocol packet receive errors";
                  }
    
                  leaf protocol-state-changes {
                    type uint32;
                    description
                      "Number of state changes";
                  }
    
                  leaf protocol-RxErrorPktLenMismatch {
                    type uint64;
                    description
                      "Number of recevied packet length mismatch error";
                  }
    
                  leaf protocol-RxErrorPktBadVlanEtype {
                    type uint64;
                    description
                      "Number of recevied packet with bad vlan data";
                  }
    
                  leaf protocol-RxErrPktBadVlanData {
                    type uint64;
                    description
                      "Number of recevied packet with bad vlan data";
                  }
    
                  leaf protocol-RxErrPktBadMlapEtype {
                    type uint64;
                    description
                      "Number of recevied packet with bad mlap Etpye";
                  }
    
                  leaf protocol-RxErrPktBadMlapVersion {
                    type uint64;
                    description
                      "Number of recevied packet with bad mlap version";
                  }
    
                  leaf protocol-RxErrPktMlapEtypeLenMismatch {
                    type uint64;
                    description
                      "Number of recevied packets with MLap Eptype mismatch(interchassis)";
                  }
    
                  leaf protocol-RxErrPktLenError {
                    type uint64;
                    description
                      "Number of recevied packet length error";
                  }
                }  // container gen-data
    
                choice detail-type {
                  case internal-detail {
                    uses mlap-internal-details;
                  }  // case internal-detail
    
                  case external-detail {
                    uses mlap-external-details;
                  }  // case external-detail
                }  // choice detail-type
              }  // list port-iter
            }  // list location
          }  // container detail
        }  // grouping mlap-detail-data-iosxrwbd
    
        grouping mlap-summary-data-iosxrwbd {
          container summary-data {
            list location {
              key "rack card switch-id";
              leaf rack {
                type esdma_types:esdma-rack-num-enum;
              }
    
              leaf card {
                type esdma_types:esdma-cpu;
                description
                  "Card that owns a switch of interest";
              }
    
              leaf switch-id {
                type esdma_types:esdma-switch-type-enum;
                description "Switch type";
              }
    
              leaf serial-num {
                type string;
                description "Rack serial number";
              }
    
              list port-iter {
                key "port";
                leaf port {
                  type esdma_types:esdma-switch-port-type;
                }
    
                leaf port-name {
                  type string;
                  description "Switch port";
                }
    
                leaf phys-state {
                  type esdma_types:esdma-switch-port-state;
                  description
                    "Physical port state";
                }
    
                leaf admin-state {
                  type esdma_types:esdma-switch-port-state;
                  description
                    "Administrative port state";
                }
    
                leaf protocol-state {
                  type esdma_types:mlap-state-enum;
                  description
                    "Protocol invoked port state";
                }
    
                leaf forwarding {
                  type esdma_types:switch-forwarding-state;
                  description
                    "Indicates whether this port is allowed to forward traffic";
                }
    
                leaf mlap-protocol {
                  type esdma_types:mlap-protocol-enum;
                  description
                    "Indicates whether the internal or external MLAP protocol is active on this port";
                }
    
                leaf connects-to {
                  type string;
                  description
                    "Indicates what this port connects to";
                }
    
                leaf mismatch-string {
                  type string;
                  description
                    "Indicates whether there is a mismatch";
                }
              }  // list port-iter
            }  // list location
          }  // container summary-data
        }  // grouping mlap-summary-data-iosxrwbd
    
        grouping mlap-statistics-data-iosxrwbd {
          container statistics {
            list location {
              key "rack card switch-id";
              leaf rack {
                type esdma_types:esdma-rack-num-enum;
              }
    
              leaf card {
                type esdma_types:esdma-cpu;
                description
                  "Card that owns a switch of interest";
              }
    
              leaf switch-id {
                type esdma_types:esdma-switch-type-enum;
                description "Switch type";
              }
    
              leaf serial-num {
                type string;
                description "Rack serial number";
              }
    
              list port-iter {
                key "port";
                leaf port {
                  type esdma_types:esdma-switch-port-type;
                }
    
                leaf port-name {
                  type string;
                  description "Switch port";
                }
    
                leaf protocol-state {
                  type esdma_types:mlap-state-enum;
                  description
                    "Protocol invoked port state";
                }
    
                leaf protocol-state-changes {
                  type uint32;
                  description
                    "Number of state changes";
                }
    
                leaf protocol-pkt-sent {
                  type uint64;
                  description
                    "Number of protocol packets sent";
                }
    
                leaf protocol-pkt-recv {
                  type uint64;
                  description
                    "Number of protocol packets received";
                }
    
                leaf protocol-send-error {
                  type uint64;
                  description
                    "Number of protocol packet send errors";
                }
    
                leaf protocol-recv-error {
                  type uint64;
                  description
                    "Number of protocol packet receive errors";
                }
    
                leaf connects-to {
                  type string;
                  description
                    "Indicates what this port connects to";
                }
    
                leaf mismatch-string {
                  type string;
                  description
                    "Indicates whether there is a mismatch";
                }
              }  // list port-iter
            }  // list location
          }  // container statistics
        }  // grouping mlap-statistics-data-iosxrwbd
    
        grouping mlap-reachable-data {
          container reachable {
            list location {
              key "rack card switch-id";
              leaf rack {
                type esdma_types:esdma-rack-num-enum;
              }
    
              leaf card {
                type esdma_types:esdma-cpu;
              }
    
              leaf switch-id {
                type esdma_types:esdma-switch-type-enum;
              }
            }  // list location
          }  // container reachable
        }  // grouping mlap-reachable-data
    
        grouping mlap-debug-counters-iosxrwbd {
          container debug {
            container counters {
              list location {
                key "rack card switch-id";
                leaf rack {
                  type esdma_types:esdma-rack-num-enum;
                }
    
                leaf card {
                  type esdma_types:esdma-cpu;
                }
    
                leaf switch-id {
                  type esdma_types:esdma-switch-type-enum;
                }
    
                container counters {
                  leaf eval-all-links-called {
                    type uint64;
                  }
    
                  leaf timer-event-queued {
                    type uint64;
                  }
    
                  leaf rx-packet-event-queued {
                    type uint64;
                  }
    
                  leaf eval-all-links-queued {
                    type uint64;
                  }
    
                  leaf link-status-queued {
                    type uint64;
                  }
    
                  leaf admin-status-queued {
                    type uint64;
                  }
    
                  leaf fwd-status-queued {
                    type uint64;
                  }
    
                  leaf current-fifo-depth {
                    type uint64;
                  }
    
                  leaf max-fifo-depth {
                    type uint64;
                  }
    
                  leaf current-mlap-timeout-ms-interval {
                    type uint32;
                  }
    
                  leaf aging-debug-enabled {
                    type boolean;
                  }
    
                  leaf trace-verbosity {
                    type esdma_types:mlap-trace-verbosity;
                  }
                }  // container counters
              }  // list location
            }  // container counters
          }  // container debug
        }  // grouping mlap-debug-counters-iosxrwbd
    
        grouping mlap-oper-group-iosxrwbd {
          container mlap {
            description "MLAP switch data";
            uses mlap-reachable-data;
    
            uses mlap-detail-data-iosxrwbd;
    
            uses mlap-statistics-data-iosxrwbd;
    
            uses mlap-summary-data-iosxrwbd;
    
            uses mlap-debug-counters-iosxrwbd;
    
            uses show_trace:traceable;
          }  // container mlap
        }  // grouping mlap-oper-group-iosxrwbd
      }  // module Cisco-IOS-XR-sysadmin-ethsw-esdma-mlap-iosxrwbd
    

© 2023 YumaWorks, Inc. All rights reserved.