Cisco-IOS-XR-ncs6k-qos-oper-sub1

This submodule contains a collection of YANG definitions for Cisco IOS-XR ncs6k-qos package operational data. Copyright (c) 201...

  • Version: 2019-04-05

    Cisco-IOS-XR-ncs6k-qos-oper-sub1@2019-04-05


    
      submodule Cisco-IOS-XR-ncs6k-qos-oper-sub1 {
    
        yang-version 1;
    
        belongs-to Cisco-IOS-XR-ncs6k-qos-oper {
            prefix Cisco-IOS-XR-ncs6k-qos-oper;
        }
    
        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 submodule contains a collection of YANG definitions
         for Cisco IOS-XR ncs6k-qos package operational data.
         
         Copyright (c) 2013-2019 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "1.0.0";
    
        typedef Sse-qosea-show-intf-status {
          type enumeration {
            enum "state-unknown" {
              value 0;
              description "State is unknown";
            }
            enum "state-down" {
              value 1;
              description "State is Down";
            }
          }
          description "Intf Status";
        }
    
        typedef Sse-qosea-show-policy-status {
          type enumeration {
            enum "no-error" {
              value 0;
              description "No errors";
            }
            enum "policy-in-reset" {
              value 1;
              description "QoS policy is reset";
            }
          }
          description "Status";
        }
    
        typedef Qos-policy-account-enum {
          type enumeration {
            enum
              "qos-serv-policy-no-ac-count-pref" {
              value 0;
              description
                "qos serv policy no ac count pref";
            }
            enum "qos-serv-policy-ac-count-l2" {
              value 1;
              description
                "qos serv policy ac count l2";
            }
            enum
              "qos-serv-policy-no-ac-count-l2" {
              value 2;
              description
                "qos serv policy no ac count l2";
            }
            enum
              "qos-serv-policy-ac-count-user-def" {
              value 3;
              description
                "qos serv policy ac count user def";
            }
            enum "qos-serv-policy-ac-count-l1" {
              value 4;
              description
                "qos serv policy ac count l1";
            }
          }
          description "Qos policy account enum";
        }
    
        typedef Sse-qosea-show-wred {
          type enumeration {
            enum "wred-cos" {
              value 0;
              description "WRED based on COS";
            }
            enum "wred-dscp" {
              value 1;
              description "WRED based on DSCP";
            }
            enum "wred-precedence" {
              value 2;
              description
                "WRED based on Precedence";
            }
            enum "wred-discard-class" {
              value 3;
              description
                "WRED based on discard class";
            }
            enum "wred-mpls-exp" {
              value 4;
              description
                "WRED based on MPLS EXP";
            }
            enum "red-with-user-min-max" {
              value 5;
              description
                "RED with user defined min and max";
            }
            enum "red-with-default-min-max" {
              value 6;
              description
                "RED with default min and max";
            }
            enum "wred-invalid" {
              value 7;
              description "Invalid";
            }
          }
          description "WRED type";
        }
    
        typedef Sse-qosea-show-action {
          type enumeration {
            enum "action-none" {
              value 0;
              description "None";
            }
            enum "action-transmit" {
              value 1;
              description "Transmit";
            }
            enum "action-drop" {
              value 2;
              description "Drop";
            }
            enum "action-mark" {
              value 3;
              description "Mark";
            }
          }
          description "Policer action type";
        }
    
        typedef Sse-qosea-show-policy-unit {
          type enumeration {
            enum "invalid" {
              value 0;
              description "Invalid uint type";
            }
            enum "bytes" {
              value 1;
              description "Units in bytes";
            }
            enum "kilo-bytes" {
              value 2;
              description "Units in kilobytes";
            }
            enum "mega-bytes" {
              value 3;
              description "Units in megabytes";
            }
            enum "giga-bytes" {
              value 4;
              description "Units in gigabytes";
            }
            enum "bits-per-second" {
              value 5;
              description
                "Units in bits per second";
            }
            enum "kilo-bits-per-second" {
              value 6;
              description
                "Units in kilo bits per second";
            }
            enum "mega-bits-per-second" {
              value 7;
              description
                "Units in mega bits per second";
            }
            enum "giga-bits-per-second" {
              value 8;
              description
                "Units in giga bits per second";
            }
            enum "cells-per-second" {
              value 9;
              description
                "Units in cells per second";
            }
            enum "packets-per-second" {
              value 10;
              description
                "Units in Packets Per Second";
            }
            enum "microseconds" {
              value 11;
              description
                "Units in microseconds";
            }
            enum "milliseconds" {
              value 12;
              description
                "Units in milliseconds";
            }
            enum "packets" {
              value 13;
              description "Units in packets";
            }
            enum "cells" {
              value 14;
              description "Units in cells";
            }
            enum "percent" {
              value 15;
              description "Units in percentage";
            }
            enum "ratio" {
              value 16;
              description "Units in ratio";
            }
          }
          description
            "Policy parameter unit type";
        }
    
        typedef Sse-qosea-show-hp-level {
          type enumeration {
            enum "high-priority-level1" {
              value 0;
              description
                "High priority queue level 1";
            }
            enum "high-priority-level2" {
              value 1;
              description
                "High priority queue level 2";
            }
            enum "high-priority-level3" {
              value 2;
              description
                "High priority queue level 3";
            }
            enum "high-priority-level4" {
              value 3;
              description
                "High priority queue level 4";
            }
            enum "high-priority-level5" {
              value 4;
              description
                "High priority queue level 5";
            }
            enum "high-priority-level6" {
              value 5;
              description
                "High priority queue level 6";
            }
            enum "high-priority-level7" {
              value 6;
              description
                "High priority queue level 7";
            }
            enum "high-priority-level8" {
              value 7;
              description
                "High priority queue level 8";
            }
            enum "unknown" {
              value 8;
              description "Unknown";
            }
          }
          description "Priority level";
        }
    
        typedef Sse-qosea-show-queue {
          type enumeration {
            enum "low-priority-default-queue" {
              value 0;
              description
                "Low priority default queue";
            }
            enum "low-priority-queue" {
              value 1;
              description "Low priority queue";
            }
            enum "high-priority-queue" {
              value 2;
              description "High priority queue";
            }
            enum "unknown-queue-type" {
              value 3;
              description
                "Queue priority unknown";
            }
          }
          description "Priority Queue Type";
        }
    
        typedef Sse-qosea-show-mark {
          type enumeration {
            enum "mark-none" {
              value 0;
              description "None";
            }
            enum "dscp" {
              value 1;
              description "DSCP";
            }
            enum "precedence" {
              value 2;
              description "Precedence";
            }
            enum "mpls-topmost" {
              value 3;
              description "MPLS topmost";
            }
            enum "mpls-imposition" {
              value 4;
              description "MPLS imposition";
            }
            enum "qos-group" {
              value 5;
              description "Qos group";
            }
            enum "discard-class" {
              value 6;
              description "Discard class";
            }
            enum "cos" {
              value 7;
              description "COS";
            }
            enum "inner-cos" {
              value 8;
              description "Inner COS";
            }
            enum "dscp-tunnel" {
              value 9;
              description "DSCP tunnel";
            }
            enum "precedence-tunnel" {
              value 10;
              description "Precedence tunnel";
            }
          }
          description "Mark type";
        }
    
        typedef Sse-qosea-show-level {
          type enumeration {
            enum "level1" {
              value 0;
              description "QoS level1 class";
            }
            enum "level2" {
              value 1;
              description "QoS level2 class";
            }
            enum "level3" {
              value 2;
              description "QoS level3 class";
            }
            enum "level4" {
              value 3;
              description "QoS level4 class";
            }
            enum "level5" {
              value 4;
              description "QoS level5 class";
            }
          }
          description "Level type";
        }
    
        typedef Sse-qosea-show-inc-dir {
          type enumeration {
            enum "direction-input" {
              value 0;
              description "Direction Input";
            }
            enum "direction-output" {
              value 1;
              description "Direction Output";
            }
          }
          description "Direction";
        }
    
        grouping SSE-QOSEA-SHOW-INC-SUMMARY {
          description
            "Inconsistency Info Summary";
          leaf-list summary {
            type uint16;
            description
              "Number of warnings of each type";
          }
        }  // grouping SSE-QOSEA-SHOW-INC-SUMMARY
    
        grouping SSE-QOSEA-SHOW-IF-QOS-INFO-ST {
          description "Policy Details";
          leaf npu-id {
            type uint32;
            description "NPU ID";
          }
    
          leaf interface-handle {
            type uint32;
            description "InterfaceHandle";
          }
    
          leaf interface-bandwidth-kbps {
            type uint32;
            units "kbit/s";
            description
              "Interface Bandwidth (in kbps)";
          }
    
          leaf policy-name {
            type string {
              length "0..64";
            }
            description "Policy name";
          }
    
          leaf total-number-of-classes {
            type uint16;
            description "Number of Classes";
          }
    
          leaf stats-accounting-type {
            type Qos-policy-account-enum;
            description
              "QoS Statistics Accounting Type";
          }
    
          leaf policy-status {
            type Sse-qosea-show-policy-status;
            description "Policy Status";
          }
    
          leaf interface-status {
            type Sse-qosea-show-intf-status;
            description "Interface Status";
          }
        }  // grouping SSE-QOSEA-SHOW-IF-QOS-INFO-ST
    
        grouping QOS-RANGE {
          description "QOS RANGE";
          leaf range-start {
            type uint8;
            description "Start value of a range";
          }
    
          leaf range-end {
            type uint8;
            description "End value of a range";
          }
        }  // grouping QOS-RANGE
    
        grouping SSE-QOSEA-SHOW-RED-MATCH-VALUES {
          description
            "SSE QOSEA SHOW RED MATCH VALUES";
          list sse-qosea-show-red-match-value {
            description
              "sse qosea show red match value";
            uses QOS-RANGE;
          }  // list sse-qosea-show-red-match-value
        }  // grouping SSE-QOSEA-SHOW-RED-MATCH-VALUES
    
        grouping PARAMETERS {
          description "WRED parameters";
          container wred-match-value {
            description "WRED match values";
            uses SSE-QOSEA-SHOW-RED-MATCH-VALUES;
          }  // container wred-match-value
    
          container config-min-threshold {
            description
              "Configured minimum threshold";
            uses POLICY-PARAMETER;
          }  // container config-min-threshold
    
          container config-max-threshold {
            description
              "Configured maximum threshold";
            uses POLICY-PARAMETER;
          }  // container config-max-threshold
    
          leaf wred-match-type {
            type Sse-qosea-show-wred;
            description "WREDMatchType";
          }
    
          leaf hardware-min-threshold-bytes {
            type uint32;
            description
              "Hardware minimum threshold";
          }
    
          leaf hardware-max-threshold-bytes {
            type uint32;
            description
              "Hardware maximum threshold";
          }
    
          leaf first-segment {
            type uint16;
            description "First segment";
          }
    
          leaf segment-size {
            type uint32;
            description "Segment size";
          }
        }  // grouping PARAMETERS
    
        grouping POLICER-ACTION {
          description "POLICER ACTION";
          leaf action-type {
            type Sse-qosea-show-action;
            description "Policer action type";
          }
    
          list mark {
            description "Action mark";
            uses QOS-MARK;
          }  // list mark
        }  // grouping POLICER-ACTION
    
        grouping POLICY-PARAMETER {
          description "Policy parameter";
          leaf policy-value {
            type uint32;
            description "Policy value";
          }
    
          leaf policy-unit {
            type Sse-qosea-show-policy-unit;
            description "Policy unit";
          }
        }  // grouping POLICY-PARAMETER
    
        grouping QOS-MARK {
          description "QoS mark";
          leaf mark-type {
            type Sse-qosea-show-mark;
            description "Mark type";
          }
    
          leaf mark-value {
            type uint16;
            description "Mark value";
          }
        }  // grouping QOS-MARK
    
        grouping SSE-QOSEA-SHOW-CLASS-ST {
          description "QoS policy";
          container config-max-rate {
            description
              "Configured maximum rate";
            uses POLICY-PARAMETER;
          }  // container config-max-rate
    
          container config-min-rate {
            description
              "Configured minimum rate";
            uses POLICY-PARAMETER;
          }  // container config-min-rate
    
          container config-queue-limit {
            description "Configured queue limit";
            uses POLICY-PARAMETER;
          }  // container config-queue-limit
    
          container config-policer-average-rate {
            description
              "Configured policer average rate";
            uses POLICY-PARAMETER;
          }  // container config-policer-average-rate
    
          container config-policer-peak-rate {
            description
              "Config policer peak rate";
            uses POLICY-PARAMETER;
          }  // container config-policer-peak-rate
    
          container config-policer-conform-burst {
            description
              "Configured policer conform burst";
            uses POLICY-PARAMETER;
          }  // container config-policer-conform-burst
    
          container config-policer-excess-burst {
            description
              "Configured policer excess burst";
            uses POLICY-PARAMETER;
          }  // container config-policer-excess-burst
    
          container conform-action {
            description "Conform action";
            uses POLICER-ACTION;
          }  // container conform-action
    
          container exceed-action {
            description "Exceed action";
            uses POLICER-ACTION;
          }  // container exceed-action
    
          container violate-action {
            description "Violate action";
            uses POLICER-ACTION;
          }  // container violate-action
    
          leaf class-level {
            type Sse-qosea-show-level;
            description "Class level";
          }
    
          leaf schedule-entry-id {
            type uint32;
            description "Schedule entry ID";
          }
    
          leaf hard-ware-schedule-entry-id {
            type uint32;
            description
              "Hardware schedudle entry ID";
          }
    
          leaf egress-queue-id {
            type int32;
            description "Egress Queue ID";
          }
    
          leaf queue-type {
            type Sse-qosea-show-queue;
            description "Queue type";
          }
    
          leaf priority-level {
            type Sse-qosea-show-hp-level;
            description "Priority level";
          }
    
          leaf bundle-queue-table-resource-handle {
            type uint64;
            description
              "Bundle queue table resource handle";
          }
    
          leaf hardware-max-rate-kbps {
            type uint32;
            units "kbit/s";
            description
              "Hardware maximum rate in kbps";
          }
    
          leaf hardware-min-rate-kbps {
            type uint32;
            units "kbit/s";
            description
              "Hardware minimum rate in kbps";
          }
    
          leaf config-excess-bandwidth-percent {
            type uint32;
            units "percentage";
            description
              "Configured excess bandwidth percentage";
          }
    
          leaf config-excess-bandwidth-unit {
            type uint32;
            description
              "Configured excess bandwidth unit";
          }
    
          leaf hardware-excess-bandwidth-weight {
            type uint32;
            description
              "Hardware excess bandwidth weight";
          }
    
          leaf network-min-bandwidth-kbps {
            type uint32;
            description
              "Network minimum Bandwith";
          }
    
          leaf hardware-queue-limit-bytes {
            type uint64;
            units "byte";
            description
              "Hardware queue limit in bytes";
          }
    
          leaf hardware-queue-limit-microseconds {
            type uint64;
            units "microsecond";
            description
              "Hardware queue limit in microseconds";
          }
    
          leaf policer-bucket-id {
            type uint64;
            description "PolicerBucketID";
          }
    
          leaf hardware-policer-average-rate-kbps {
            type uint32;
            units "kbit/s";
            description
              "Hardware policer average in kbps";
          }
    
          leaf hardware-policer-peak-rate-kbps {
            type uint32;
            description
              "Hardware policer peak rate";
          }
    
          leaf hardware-policer-conform-burst-bytes {
            type uint32;
            description
              "Hardware policer conform burst";
          }
    
          leaf hardware-policer-excess-burst-bytes {
            type uint32;
            description
              "Hardware policer excess burst";
          }
    
          leaf wred-resource-handle {
            type uint64;
            description "WRED resource handle";
          }
    
          list ip-mark {
            description "IP mark";
            uses QOS-MARK;
          }  // list ip-mark
    
          list common-mark {
            description "Common mark";
            uses QOS-MARK;
          }  // list common-mark
    
          list mpls-mark {
            description "MPLS mark";
            uses QOS-MARK;
          }  // list mpls-mark
    
          list wred {
            description "WRED parameters";
            uses PARAMETERS;
          }  // list wred
        }  // grouping SSE-QOSEA-SHOW-CLASS-ST
    
        grouping SSE-QOSEA-AGG-BW-ENABLE {
          description
            "no hw-module all qos-mode aggregate-bundle-mode";
          leaf is-active {
            type boolean;
            description
              "Is Agg BW applied on any interface";
          }
    
          leaf interface-handle {
            type uint32;
            description "Interface Handle";
          }
        }  // grouping SSE-QOSEA-AGG-BW-ENABLE
    
        grouping SSE-QOSEA-SHOW-INC-DETAIL-ELEM {
          description
            "Inconsistency Info Detail Element";
          leaf interface-handle {
            type uint32;
            description "Interface Handle";
          }
    
          leaf underlying-interface-handle {
            type uint32;
            description
              "Underlying Interface Handle";
          }
    
          leaf npu-id {
            type uint8;
            description "NPU Id";
          }
    
          leaf policy-name {
            type string {
              length "0..64";
            }
            description "Policy name";
          }
    
          leaf direction {
            type Sse-qosea-show-inc-dir;
            description "Direction";
          }
    
          leaf inc-bitmap {
            type uint32;
            description
              "Inconsistency Type Bitmap";
          }
        }  // grouping SSE-QOSEA-SHOW-INC-DETAIL-ELEM
    
        grouping SSE-QOSEA-SHOW-INC-DETAIL {
          description
            "Inconsistency Info Detail";
          list detail {
            description
              "Details of warnings of each interface";
            uses SSE-QOSEA-SHOW-INC-DETAIL-ELEM;
          }  // list detail
        }  // grouping SSE-QOSEA-SHOW-INC-DETAIL
      }  // submodule Cisco-IOS-XR-ncs6k-qos-oper-sub1
    

© 2023 YumaWorks, Inc. All rights reserved.