This module contains a collection of YANG definitions for Cisco IOS-XR l2-eth-infra package operational data. This module conta...
Version: 2019-04-05
module Cisco-IOS-XR-l2-eth-infra-oper { yang-version 1; namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-l2-eth-infra-oper"; prefix l2-eth-infra-oper; import Cisco-IOS-XR-types { prefix xr; } import cisco-semver { prefix semver; } import Cisco-IOS-XR-l2-eth-infra-datatypes { prefix dt1; } include Cisco-IOS-XR-l2-eth-infra-oper-sub3 { revision-date "2019-04-05"; } include Cisco-IOS-XR-l2-eth-infra-oper-sub2 { revision-date "2019-04-05"; } include Cisco-IOS-XR-l2-eth-infra-oper-sub1 { revision-date "2019-04-05"; } 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 l2-eth-infra package operational data. This module contains definitions for the following management objects: mac-accounting: MAC accounting operational data vlan: VLAN operational data ethernet-encapsulation: Ethernet encapsulation 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.1"; container mac-accounting { config false; description "MAC accounting operational data"; container interfaces { description "MAC accounting interface table in MIB lexicographic order"; list interface { key "interface-name"; description "Operational data and statistics for an interface configured with MAC accounting enabled"; leaf interface-name { type xr:Interface-name; description "The interface name"; } container state { description "MAC accounting state for the interface"; leaf is-ingress-enabled { type boolean; description "MAC accounting on on ingress"; } leaf is-egress-enabled { type boolean; description "MAC accounting on on egress"; } leaf number-available-ingress { type uint32; description "MAC accounting entries available on ingress"; } leaf number-available-egress { type uint32; description "MAC accounting entries available on egress"; } leaf number-available-on-node { type uint32; description "MAC accountng entries available across the node"; } } // container state list ingress-statistic { description "Ingress MAC accounting statistics"; leaf mac-address { type yang:mac-address; description "48bit MAC address"; } leaf packets { type uint64; description "Number of packets counted"; } leaf bytes { type uint64; units "byte"; description "Number of bytes counted"; } } // list ingress-statistic list egress-statistic { description "Egress MAC accounting statistics"; leaf mac-address { type yang:mac-address; description "48bit MAC address"; } leaf packets { type uint64; description "Number of packets counted"; } leaf bytes { type uint64; units "byte"; description "Number of bytes counted"; } } // list egress-statistic } // list interface } // container interfaces } // container mac-accounting container vlan { config false; description "VLAN operational data"; container nodes { description "Per node VLAN operational data"; list node { key "node-id"; description "The VLAN operational data for a particular node"; container trunks { description "VLAN trunk table (specific to this node)"; list trunk { key "interface"; description "Operational data for trunk interfaces configured with VLANs"; leaf interface { type xr:Interface-name; description "The interface name"; } container layer2-sub-interfaces { description "Layer 2 Transport Subinterfaces"; container state-counters { description "Numbers of subinterfaces up, down or administratively shut down"; leaf up { type uint32; description "Number of subinterfaces which are up"; } leaf down { type uint32; description "Number of subinterfaces which are down"; } leaf admin-down { type uint32; description "Number of subinterfaces which are administrativelyshutdown"; } } // container state-counters leaf total-count { type uint32; description "Total number of Layer 2 subinterfaces configured"; } leaf dot1q-count { type uint32; description "Number of single tagged subinterfaces"; } leaf qin-q-count { type uint32; description "Number of double tagged subinterfaces with explicit inner tag"; } leaf qin-any-count { type uint32; description "Number of double tagged subinterfaces with wildcarded inner tag"; } leaf untagged-count { type uint32; description "Number of subinterfaces without VLAN tag configuration"; } } // container layer2-sub-interfaces container layer3-sub-interfaces { description "Layer 3 Terminated Subinterfaces"; container state-counters { description "Numbers of subinterfaces up, down or administratively shut down"; leaf up { type uint32; description "Number of subinterfaces which are up"; } leaf down { type uint32; description "Number of subinterfaces which are down"; } leaf admin-down { type uint32; description "Number of subinterfaces which are administrativelyshutdown"; } } // container state-counters leaf total-count { type uint32; description "Total number of Layer 3 subinterfaces configured"; } leaf dot1q-count { type uint32; description "Number of single tagged subinterfaces"; } leaf qin-q-count { type uint32; description "Number of double tagged subinterfaces"; } leaf untagged-count { type uint32; description "Number of subinterfaces without VLAN tag configuration"; } leaf native-vlan { type Vlan-tag-value; description "Native VLAN ID configured on trunk"; } } // container layer3-sub-interfaces container vlan-switched { description "VLAN-Switched information"; container trunk-vlan-ranges { description "VLAN-Switched Trunk VLAN ranges"; container local-traffic-stack { description "VLAN tags for locally-sourced traffic"; list local-traffic-tag { description "VLAN tags for locally-sourced traffic"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag"; } leaf vlan-id { type Vlan-tag-value; description "VLAN Id"; } } // list local-traffic-tag } // container local-traffic-stack leaf payload-ethertype { type Efp-payload-etype; description "Payload Ethertype to match"; } leaf tags-popped { type uint16; description "Number of tags popped on ingress"; } leaf is-exact-match { type boolean; description "Whether the packet must match the encapsulation exactly, with no further inner tags"; } leaf is-native-vlan { type boolean; description "Whether this represents the native VLAN on the port"; } leaf is-native-preserving { type boolean; description "Whether the native VLAN is customer-tag preserving"; } leaf source-mac-match { type Mac-address; description "The source MAC address to match on ingress"; } leaf destination-mac-match { type Mac-address; description "The destination MAC address to match on ingress"; } list tags-to-match { description "Tags to match on ingress packets"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag to match"; } leaf priority { type Efp-tag-priority; description "Priority to match"; } list vlan-range { description "VLAN Ids to match"; leaf vlan-id-low { type Vlan-tag-value; description "VLAN ID Low"; } leaf vlan-id-high { type Vlan-tag-value; description "VLAN ID High"; } } // list vlan-range } // list tags-to-match list pushe { description "VLAN tags pushed on egress"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag"; } leaf vlan-id { type Vlan-tag-value; description "VLAN Id"; } } // list pushe } // container trunk-vlan-ranges leaf mode { type Vlan-switched-mode; description "VLAN-Switched mode"; } leaf access-vlan { type Vlan-tag-value; description "VLAN-Switched Access VLAN"; } } // container vlan-switched leaf interface-xr { type xr:Interface-name; description "Interface name"; } leaf state { type Im-state-enum; description "Interface state"; } leaf mtu { type uint16; description "L2 MTU"; } leaf qinq-outer-ether-type { type Vlan-qinq-outer-etype; description "QinQ Outer Tag Ether Type"; } leaf dot1ad-count { type uint32; description "Number of subinterfaces with 802.1ad outer tag"; } leaf untagged-interface { type xr:Interface-name; description "Interface/Sub-interface handling untagged frames"; } leaf mac-filtering { type Eth-filtering; description "IEEE 802.1Q/802.1ad multicast MAC address filtering"; } } // list trunk } // container trunks container interfaces { description "VLAN interface table (specific to this node)"; list interface { key "interface"; description "Operational data for a sub-interface configured with VLANs"; leaf interface { type xr:Interface-name; description "The interface name"; } container encapsulation-details { description "Encapsulation type and tag stack"; container stack { when "../vlan-encapsulation = 'qinq'" { description "../VLANEncapsulation = 'QinQ'"; } description "Stack value"; leaf outer-tag { type Vlan-tag-value; description "Outer tag value"; } leaf second-tag { type Vlan-tag-value; description "Second tag value"; } } // container stack container service-instance-details { when "../vlan-encapsulation = 'service-instance'" { description "../VLANEncapsulation = 'ServiceInstance'"; } description "Service Instance encapsulation"; container local-traffic-stack { description "VLAN tags for locally-sourced traffic"; list local-traffic-tag { description "VLAN tags for locally-sourced traffic"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag"; } leaf vlan-id { type Vlan-tag-value; description "VLAN Id"; } } // list local-traffic-tag } // container local-traffic-stack leaf payload-ethertype { type Efp-payload-etype; description "Payload Ethertype to match"; } leaf tags-popped { type uint16; description "Number of tags popped on ingress"; } leaf is-exact-match { type boolean; description "Whether the packet must match the encapsulation exactly, with no further inner tags"; } leaf is-native-vlan { type boolean; description "Whether this represents the native VLAN on the port"; } leaf is-native-preserving { type boolean; description "Whether the native VLAN is customer-tag preserving"; } leaf source-mac-match { type Mac-address; description "The source MAC address to match on ingress"; } leaf destination-mac-match { type Mac-address; description "The destination MAC address to match on ingress"; } list tags-to-match { description "Tags to match on ingress packets"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag to match"; } leaf priority { type Efp-tag-priority; description "Priority to match"; } list vlan-range { description "VLAN Ids to match"; leaf vlan-id-low { type Vlan-tag-value; description "VLAN ID Low"; } leaf vlan-id-high { type Vlan-tag-value; description "VLAN ID High"; } } // list vlan-range } // list tags-to-match list pushe { description "VLAN tags pushed on egress"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag"; } leaf vlan-id { type Vlan-tag-value; description "VLAN Id"; } } // list pushe } // container service-instance-details container dot1ad-dot1q-stack { when "../vlan-encapsulation = 'dot1ad-dot1q'" { description "../VLANEncapsulation = 'Dot1adDot1Q'"; } description "802.1ad 802.1Q stack value"; leaf outer-tag { type Vlan-tag-value; description "Outer tag value"; } leaf second-tag { type Vlan-tag-value; description "Second tag value"; } } // container dot1ad-dot1q-stack leaf vlan-encapsulation { type Vlan-encaps; description "VLANEncapsulation"; } leaf tag { when "../vlan-encapsulation = 'dot1q'" { description "../VLANEncapsulation = 'Dot1Q'"; } type Vlan-tag-value; description "Tag value"; } leaf outer-tag { when "../vlan-encapsulation = 'qin-any'" { description "../VLANEncapsulation = 'QinAny'"; } type Vlan-tag-value; description "Outer tag value"; } leaf native-tag { when "../vlan-encapsulation = 'dot1q-native'" { description "../VLANEncapsulation = 'Dot1QNative'"; } type Vlan-tag-value; description "Native tag value"; } leaf dot1ad-tag { when "../vlan-encapsulation = 'dot1ad'" { description "../VLANEncapsulation = 'Dot1ad'"; } type Vlan-tag-value; description "802.1ad tag value"; } leaf dot1ad-native-tag { when "../vlan-encapsulation = 'dot1ad-native'" { description "../VLANEncapsulation = 'Dot1adNative'"; } type Vlan-tag-value; description "802.1ad native tag value"; } leaf dot1ad-outer-tag { when "../vlan-encapsulation = 'dot1ad-any'" { description "../VLANEncapsulation = 'Dot1adAny'"; } type Vlan-tag-value; description "802.1ad Outer tag value"; } } // container encapsulation-details leaf interface-xr { type xr:Interface-name; description "Interface"; } leaf parent-interface { type xr:Interface-name; description "Parent interface"; } leaf service { type Vlan-service; description "Service type"; } leaf state { type Im-state-enum; description "Interface state"; } leaf mtu { type uint16; description "L2 MTU"; } leaf switched-mtu { type uint16; description "L2 switched MTU"; } } // list interface } // container interfaces container tag-allocations { description "VLAN tag allocation table (specific to this node)"; list tag-allocation { description "Operational data for a sub-interface configured with VLANs"; leaf interface { type xr:Interface-name; description "The interface name"; } leaf first-tag { type dt1:Vlan-tag; description "The first (outermost) tag"; } leaf second-tag { type dt1:Vlan-tag-or-any; description "The second tag"; } container encapsulation-details { description "Encapsulation type and tag stack"; container stack { when "../vlan-encapsulation = 'qinq'" { description "../VLANEncapsulation = 'QinQ'"; } description "Stack value"; leaf outer-tag { type Vlan-tag-value; description "Outer tag value"; } leaf second-tag { type Vlan-tag-value; description "Second tag value"; } } // container stack container service-instance-details { when "../vlan-encapsulation = 'service-instance'" { description "../VLANEncapsulation = 'ServiceInstance'"; } description "Service Instance encapsulation"; container local-traffic-stack { description "VLAN tags for locally-sourced traffic"; list local-traffic-tag { description "VLAN tags for locally-sourced traffic"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag"; } leaf vlan-id { type Vlan-tag-value; description "VLAN Id"; } } // list local-traffic-tag } // container local-traffic-stack leaf payload-ethertype { type Efp-payload-etype; description "Payload Ethertype to match"; } leaf tags-popped { type uint16; description "Number of tags popped on ingress"; } leaf is-exact-match { type boolean; description "Whether the packet must match the encapsulation exactly, with no further inner tags"; } leaf is-native-vlan { type boolean; description "Whether this represents the native VLAN on the port"; } leaf is-native-preserving { type boolean; description "Whether the native VLAN is customer-tag preserving"; } leaf source-mac-match { type Mac-address; description "The source MAC address to match on ingress"; } leaf destination-mac-match { type Mac-address; description "The destination MAC address to match on ingress"; } list tags-to-match { description "Tags to match on ingress packets"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag to match"; } leaf priority { type Efp-tag-priority; description "Priority to match"; } list vlan-range { description "VLAN Ids to match"; leaf vlan-id-low { type Vlan-tag-value; description "VLAN ID Low"; } leaf vlan-id-high { type Vlan-tag-value; description "VLAN ID High"; } } // list vlan-range } // list tags-to-match list pushe { description "VLAN tags pushed on egress"; leaf ethertype { type Efp-tag-etype; description "Ethertype of tag"; } leaf vlan-id { type Vlan-tag-value; description "VLAN Id"; } } // list pushe } // container service-instance-details container dot1ad-dot1q-stack { when "../vlan-encapsulation = 'dot1ad-dot1q'" { description "../VLANEncapsulation = 'Dot1adDot1Q'"; } description "802.1ad 802.1Q stack value"; leaf outer-tag { type Vlan-tag-value; description "Outer tag value"; } leaf second-tag { type Vlan-tag-value; description "Second tag value"; } } // container dot1ad-dot1q-stack leaf vlan-encapsulation { type Vlan-encaps; description "VLANEncapsulation"; } leaf tag { when "../vlan-encapsulation = 'dot1q'" { description "../VLANEncapsulation = 'Dot1Q'"; } type Vlan-tag-value; description "Tag value"; } leaf outer-tag { when "../vlan-encapsulation = 'qin-any'" { description "../VLANEncapsulation = 'QinAny'"; } type Vlan-tag-value; description "Outer tag value"; } leaf native-tag { when "../vlan-encapsulation = 'dot1q-native'" { description "../VLANEncapsulation = 'Dot1QNative'"; } type Vlan-tag-value; description "Native tag value"; } leaf dot1ad-tag { when "../vlan-encapsulation = 'dot1ad'" { description "../VLANEncapsulation = 'Dot1ad'"; } type Vlan-tag-value; description "802.1ad tag value"; } leaf dot1ad-native-tag { when "../vlan-encapsulation = 'dot1ad-native'" { description "../VLANEncapsulation = 'Dot1adNative'"; } type Vlan-tag-value; description "802.1ad native tag value"; } leaf dot1ad-outer-tag { when "../vlan-encapsulation = 'dot1ad-any'" { description "../VLANEncapsulation = 'Dot1adAny'"; } type Vlan-tag-value; description "802.1ad Outer tag value"; } } // container encapsulation-details leaf interface-xr { type xr:Interface-name; description "Interface"; } leaf parent-interface { type xr:Interface-name; description "Parent interface"; } leaf service { type Vlan-service; description "Service type"; } leaf state { type Im-state-enum; description "Interface state"; } leaf mtu { type uint16; description "L2 MTU"; } leaf switched-mtu { type uint16; description "L2 switched MTU"; } } // list tag-allocation } // container tag-allocations leaf node-id { type xr:Node-id; description "The identifier for the node"; } } // list node } // container nodes } // container vlan container ethernet-encapsulation { config false; description "Ethernet encapsulation operational data"; container nodes { description "Per node Ethernet encapsulation operational data"; list node { key "node-name"; description "The Ethernet encaps operational data for a particular node"; container unicast-mac-filters { description "Unicast MAC filter table (specific to this node)"; list unicast-mac-filter { key "interface-name"; description "Operational data for interface with MAC filters configured"; leaf interface-name { type xr:Interface-name; description "The interface name"; } list unicast-filter { description "Unicast MAC filter information"; leaf mac-address { type yang:mac-address; description "MAC address"; } leaf mode { type Eth-caps-ucast-mac-mode; description "Unicast MAC mode"; } } // list unicast-filter } // list unicast-mac-filter } // container unicast-mac-filters leaf node-name { type xr:Node-id; description "The identifier for the node"; } } // list node } // container nodes } // container ethernet-encapsulation } // module Cisco-IOS-XR-l2-eth-infra-oper
© 2023 YumaWorks, Inc. All rights reserved.