This submodule contains a collection of YANG definitions for Cisco IOS-XR ncs5500-qos package operational data. Copyright (c) 2...
Version: 2019-08-24
submodule Cisco-IOS-XR-ncs5500-qos-oper-sub1 { yang-version 1; belongs-to Cisco-IOS-XR-ncs5500-qos-oper { prefix Cisco-IOS-XR-ncs5500-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 ncs5500-qos package operational data. Copyright (c) 2013-2019 by Cisco Systems, Inc. All rights reserved."; revision "2019-08-24" { description "Fixing pyang compilation error."; } revision "2019-04-05" { description "Establish semantic version baseline."; } revision "2015-11-09" { description "IOS XR 6.0 revision."; } semver:module-version "2.0.0"; semver:module-version "1.1.0"; typedef Dnx-qosea-show-inc-dir { type enumeration { enum "direction-input" { value 0; description "Direction Input"; } enum "direction-output" { value 1; description "Direction Output"; } } description "Direction"; } typedef Dpa-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 Dpa-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 Policy-param-unit { type enumeration { enum "policy-param-unit-invalid" { value 0; description "policy param unit invalid"; } enum "policy-param-unit-bytes" { value 1; description "policy param unit bytes"; } enum "policy-param-unit-kbytes" { value 2; description "policy param unit kbytes"; } enum "policy-param-unit-mbytes" { value 3; description "policy param unit mbytes"; } enum "policy-param-unit-gbytes" { value 4; description "policy param unit gbytes"; } enum "policy-param-unit-bitsps" { value 5; description "policy param unit bitsps"; } enum "policy-param-unit-kbitsps" { value 6; description "policy param unit kbitsps"; } enum "policy-param-unit-mbitsps" { value 7; description "policy param unit mbitsps"; } enum "policy-param-unit-gbitsps" { value 8; description "policy param unit gbitsps"; } enum "policy-param-unit-cells-ps" { value 9; description "policy param unit cells ps"; } enum "policy-param-unit-packets-ps" { value 10; description "policy param unit packets ps"; } enum "policy-param-unit-us" { value 11; description "policy param unit us"; } enum "policy-param-unit-ms" { value 12; description "policy param unit ms"; } enum "policy-param-unit-seconds" { value 13; description "policy param unit seconds"; } enum "policy-param-unit-packets" { value 14; description "policy param unit packets"; } enum "policy-param-unit-cells" { value 15; description "policy param unit cells"; } enum "policy-param-unit-percent" { value 16; description "policy param unit percent"; } enum "policy-param-unit-per-thousand" { value 17; description "policy param unit per thousand"; } enum "policy-param-unit-per-million" { value 18; description "policy param unit per million"; } enum "policy-param-unit-hz" { value 19; description "policy param unit hz"; } enum "policy-param-unit-khz" { value 20; description "policy param unit khz"; } enum "policy-param-unit-mhz" { value 21; description "policy param unit mhz"; } enum "policy-param-unit-ratio" { value 22; description "policy param unit ratio"; } enum "policy-param-unit-inverse-ratio" { value 23; description "policy param unit inverse ratio"; } enum "policy-param-unit-max" { value 24; description "policy param unit max"; } } description "Policy param unit"; } typedef Dpa-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 "unknown" { value 7; description "Unknown"; } } description "Priority level"; } typedef Dpa-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 Dpa-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 "un-supported9" { value 9; description "Unsupported type 9"; } enum "un-supported10" { value 10; description "Unsupported type 10"; } enum "un-supported11" { value 11; description "Unsupported type 11"; } enum "dscp-tunnel" { value 12; description "DSCP tunnel"; } enum "precedence-tunnel" { value 13; description "Precedence tunnel"; } enum "dei" { value 14; description "DEI"; } enum "dei-imposition" { value 15; description "DEI Imposition"; } enum "un-supported16" { value 16; description "Unsupported type 16"; } enum "un-supported17" { value 17; description "Unsupported type 17"; } enum "traffic-class" { value 18; description "Traffic class"; } } description "Mark type"; } typedef Dpa-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 Dpa-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 Dpa-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"; } grouping DNX-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 Dnx-qosea-show-inc-dir; description "Direction"; } leaf inc-bitmap { type uint32; description "Inconsistency Type Bitmap"; } } // grouping DNX-QOSEA-SHOW-INC-DETAIL-ELEM grouping DNX-QOSEA-SHOW-INC-DETAIL { description "Inconsistency Info Detail"; list detail { description "Details of warnings of each interface"; uses DNX-QOSEA-SHOW-INC-DETAIL-ELEM; } // list detail } // grouping DNX-QOSEA-SHOW-INC-DETAIL grouping DNX-QOSEA-SHOW-INC-SUMMARY { description "Inconsistency Info Summary"; leaf-list summary { type uint16; description "Number of warnings of each type"; } } // grouping DNX-QOSEA-SHOW-INC-SUMMARY 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 DPA-QOSEA-SHOW-RED-MATCH-VALUES { description "DPA QOSEA SHOW RED MATCH VALUES"; list dpa-qosea-show-red-match-value { description "dpa qosea show red match value"; uses QOS-RANGE; } // list dpa-qosea-show-red-match-value } // grouping DPA-QOSEA-SHOW-RED-MATCH-VALUES grouping PARAMETERS { description "WRED parameters"; container wred-match-value { description "WRED match values"; uses DPA-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 container config-drop-probability { description "Configured drop/mark probability"; uses POLICY-PARAMETER; } // container config-drop-probability leaf wred-match-type { type Dpa-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 hardware-drop-probability { type uint32; description "Hardware drop/mark probability"; } 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 Dpa-qosea-show-action; description "Policer action type"; } list mark { description "Action mark"; uses QOS-MARK; } // list mark } // grouping POLICER-ACTION grouping DQL-POLICY-PARAMETER { description "DQL Policy parameter"; leaf class0-policy-value { type uint32; description "Discard Class0 Policy value"; } leaf class1-policy-value { type uint32; description "Discard Class1 Policy value"; } leaf dql-policy-unit { type Policy-param-unit; description "DQL Policy unit"; } } // grouping DQL-POLICY-PARAMETER grouping POLICY-PARAMETER { description "Policy parameter"; leaf policy-value { type uint32; description "Policy value"; } leaf policy-unit { type Policy-param-unit; description "Policy unit"; } } // grouping POLICY-PARAMETER grouping QOS-MARK { description "QoS mark"; leaf mark-type { type Dpa-qosea-show-mark; description "Mark type"; } leaf mark-value { type uint16; description "Mark value"; } } // grouping QOS-MARK grouping DPA-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-d-queue-limit { description "Configured Dual queue limit"; uses DQL-POLICY-PARAMETER; } // container config-d-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 container config-shaper-peak-burst { description "Configured shaper peak burst"; uses POLICY-PARAMETER; } // container config-shaper-peak-burst container resolved-shaper-peak-burst { description "Resolved shaper peak burst"; uses POLICY-PARAMETER; } // container resolved-shaper-peak-burst leaf class-level { type Dpa-qosea-show-level; description "Class level"; } leaf egress-queue-id { type int32; description "Egress Queue ID"; } leaf queue-type { type Dpa-qosea-show-queue; description "Queue type"; } leaf priority-level { type Dpa-qosea-show-hp-level; description "Priority level"; } 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 uint32; description "PolicerBucketID"; } leaf policer-stats-handle { type uint64; description "PolicerStatsHandle"; } 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 is-referred { type boolean; description "Is shared policer referred class"; } leaf ecn-enabled { type boolean; description "ECN Enabled"; } leaf hardware-shaper-peak-burst-bytes { type uint32; description "Hardware shaper peak burst"; } leaf low-shaper-enabled { type boolean; description "Low Shaper Enabled"; } 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 DPA-QOSEA-SHOW-CLASS-ST grouping DPA-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 interface-bandwidthkbps { type uint64; units "kbit/s"; description "Interface Bandwidth (in kbps)"; } leaf policy-name { type string { length "0..64"; } description "Policy name"; } leaf spi-id { type uint64; description "SPI Id"; } leaf total-number-of-classes { type uint16; description "Number of Classes"; } leaf voq-base-address { type uint32; description "VOQ base address"; } leaf voq-stats-handle { type uint64; description "VOQ stats handle"; } leaf stats-accounting-type { type Qos-policy-account-enum; description "QoS Statistics Accounting Type"; } leaf policy-status { type Dpa-qosea-show-policy-status; description "Policy Status"; } leaf interface-status { type Dpa-qosea-show-intf-status; description "Interface Status"; } leaf pfc { type uint8; description "Flag to indicate if PFC is enabled on the interface"; } } // grouping DPA-QOSEA-SHOW-IF-QOS-INFO-ST } // submodule Cisco-IOS-XR-ncs5500-qos-oper-sub1
© 2023 YumaWorks, Inc. All rights reserved.