This submodule contains a collection of YANG definitions for Cisco IOS-XR mpls-static package operational data. Copyright (c) 2...
Version: 2019-04-05
submodule Cisco-IOS-XR-mpls-static-oper-sub1 { yang-version 1; belongs-to Cisco-IOS-XR-mpls-static-oper { prefix Cisco-IOS-XR-mpls-static-oper; } import ietf-inet-types { prefix inet; } 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 mpls-static package operational data. Copyright (c) 2013-2019 by Cisco Systems, Inc. All rights reserved."; revision "2019-04-05" { description "Establish semantic version baseline."; } revision "2017-05-01" { description "Fixing backward compatibility error in module."; } revision "2015-11-09" { description "IOS XR 6.0 revision."; } semver:module-version "1.0.1"; typedef Mgmt-mpls-static-path-status { type enumeration { enum "path-next-hop-none" { value 0; description "Path NextHop No Status"; } enum "path-next-hop-interface-down" { value 1; description "Path NextHop Interface Down "; } enum "path-next-hop-valid" { value 2; description "Path NextHop Valid"; } enum "resolve-failed" { value 3; description "Path NextHop Resolve Failed"; } enum "frr-backup" { value 4; description "FRR Backup"; } enum "backup" { value 5; description "Backup"; } } description "Mgmt mpls static path status"; } typedef Mgmt-static-lsp-afi { type enumeration { enum "not-applicable" { value 0; description "Not Applicable"; } enum "ipv4" { value 1; description "IPv4"; } enum "ipv6" { value 2; description "IPv6"; } } description "Mgmt static lsp afi"; } typedef Mpls-static-path-role { type enumeration { enum "primary" { value 0; description "Path is only for primary traffic"; } enum "backup" { value 1; description "Path is only for backup traffic"; } enum "primary-and-backup" { value 2; description "Path is for primary and backup traffic"; } } description "Mpls static path role"; } typedef Mgmt-static-path { type enumeration { enum "cross-connect-path" { value 0; description "Crossconnect Path"; } enum "pop-lookup-path" { value 1; description "Pop and Lookup Path"; } } description "Mgmt static path"; } typedef Static-ipv6-address { type inet:ipv6-address; description "Static ipv6 address"; } typedef Mgmt-static-addr { type enumeration { enum "not-applicable" { value 0; description "Not Applicable"; } enum "ipv4" { value 1; description "IPv4"; } enum "ipv6" { value 2; description "IPv6"; } } description "Mgmt static addr"; } typedef Mgmt-mpls-static-label-status { type enumeration { enum "not-created" { value 0; description "Label Not Created"; } enum "vrf-down" { value 1; description "Label without active VRF"; } enum "rewrite-vrf-down" { value 2; description "Rewrite without active VRF"; } enum "lsd-disconnected" { value 3; description "LSD is disconnected"; } enum "lsd-failed" { value 4; description "LSD operation failed"; } enum "wait-for-lsd-reply" { value 5; description "Waiting for LSD operation"; } enum "label-created" { value 6; description "Label Created"; } enum "label-create-failed" { value 7; description "Label Creation Failed"; } enum "label-rewrite-failed" { value 8; description "Rewrite Creation Failed"; } enum "rewrite-next-hop-interface-down" { value 9; description "Rewrite NextHop Down "; } enum "label-discrepancy" { value 10; description "Label Discrepancy "; } enum "rewrite-discrepancy" { value 11; description "Rewrite Discrepancy "; } enum "rewrite-nexthop-unresolved" { value 12; description "Rewrite Nexthop Unresolved"; } enum "label-status-unknown" { value 13; description "Label Status Unknown"; } } description "Mgmt mpls static label status"; } typedef Mgmt-mpls-static-label-mode { type enumeration { enum "none" { value 0; description "No Label Mode"; } enum "per-prefix" { value 1; description "Per-prefix Label"; } enum "per-vrf" { value 2; description "Per-VRF label"; } enum "cross-connect" { value 3; description "Label with crossconnect"; } } description "Mgmt mpls static label mode"; } grouping MPLS-STATIC-SUMMARY { description "Summary Information"; leaf lsp-count { type uint32; description "Total Number of LSPs"; } leaf label-count { type uint32; description "Total Number of Labels"; } leaf label-error-count { type uint32; description "Total Number of Labels with Errors"; } leaf label-discrepancy-count { type uint32; description "Total Number of Labels with Discrepancies"; } leaf vrf-count { type uint32; description "Total Number of VRF configured"; } leaf active-vrf-count { type uint32; description "Total Number of Active VRF Active"; } leaf interface-count { type uint32; description "Total Number of Interface"; } leaf interface-foward-reference-count { type uint32; description "Total Number of Active Interface"; } leaf mpls-enabled-interface-count { type uint32; description "Total Number of MPLS enabled Interface"; } leaf ipv4-res-nh-count { type uint32; description "Total Number of IPv4 ResolveNextHops"; } leaf ipv6-res-nh-count { type uint32; description "Total Number of IPv6 ResoleNextHops"; } leaf lsd-connected { type boolean; description "LSD connection is up"; } leaf im-connected { type boolean; description "IM is connected"; } leaf rsi-connected { type boolean; description "RSI is connected"; } leaf ribv4-connected { type boolean; description "RIBv4 is connected"; } leaf ribv6-connected { type boolean; description "RIBv6 is connected"; } } // grouping MPLS-STATIC-SUMMARY grouping MPLS-STATIC-LSP-PATH-NH-INFO { description "Path Nexthop Info"; container address { description "Next-Hop IP Address"; uses MPLS-STATIC-CTX-PREFIX-BAG; } // container address leaf label { type uint32; description "Next-Hop Label"; } leaf interface-name { type string; description "Next-Hop Interface Name"; } leaf afi { type Mgmt-static-lsp-afi; description "Next-Hop AFI"; } } // grouping MPLS-STATIC-LSP-PATH-NH-INFO grouping MPLS-STATIC-LSP-PATH-INFO { description "Path Info"; container nexthop { description "Nexthop information"; uses MPLS-STATIC-LSP-PATH-NH-INFO; } // container nexthop leaf path-number { type uint32; description "Path Number"; } leaf type { type Mgmt-static-path; description "Path Type"; } leaf path-role { type Mpls-static-path-role; description "Path Role"; } leaf path-id { type uint8; description "Path Id"; } leaf backup-id { type uint8; description "Path Backup Id"; } leaf status { type Mgmt-mpls-static-path-status; description "Path Status"; } } // grouping MPLS-STATIC-LSP-PATH-INFO grouping MPLS-STATIC-CTX-PREFIX-BAG { description "MPLS STATIC CTX PREFIX BAG"; leaf af-name { type Mgmt-static-addr; description "AFName"; } leaf ipv4-prefix { when "../af-name = 'ipv4'" { description "../AFName = 'IPv4'"; } type inet:ipv4-address; description "IPv4 context"; } leaf ipv6-prefix { when "../af-name = 'ipv6'" { description "../AFName = 'IPv6'"; } type Static-ipv6-address; description "IPv6 context"; } } // grouping MPLS-STATIC-CTX-PREFIX-BAG grouping MPLS-STATIC-LBL-PREFIX-INFO { description "Prefix Information"; container prefix { description "Prefix"; uses MPLS-STATIC-CTX-PREFIX-BAG; } // container prefix leaf prefix-length { type uint8; description "Prefix length"; } } // grouping MPLS-STATIC-LBL-PREFIX-INFO grouping MPLS-STATIC-LBL-INFO { description "Static Label and Prefix information"; container prefix { description "Prefix Information"; uses MPLS-STATIC-LBL-PREFIX-INFO; } // container prefix container pathset-resolve-nh { description "Primary pathset resolve-nexthop IP Address"; uses MPLS-STATIC-CTX-PREFIX-BAG; } // container pathset-resolve-nh container backup-pathset-resolve-nh { description "Backup pathset resolve-nexthop IP Address"; uses MPLS-STATIC-CTX-PREFIX-BAG; } // container backup-pathset-resolve-nh leaf label { type uint32; description "Label value"; } leaf label-mode { type Mgmt-mpls-static-label-mode; description "Label Mode"; } leaf label-status { type Mgmt-mpls-static-label-status; description "Label Status"; } leaf vrf-name { type string; description "VRF name"; } leaf pathset-via-resolve { type boolean; description "Primary Pathset as a result of resolve"; } leaf backup-pathset-via-resolve { type boolean; description "Backup Pathset as a result of resolve"; } leaf address-family { type Mgmt-static-addr; description "Address Family"; } list path-info { description "Path Information"; uses MPLS-STATIC-LSP-PATH-INFO; } // list path-info list backup-path-info { description "Backup Path Information"; uses MPLS-STATIC-LSP-PATH-INFO; } // list backup-path-info } // grouping MPLS-STATIC-LBL-INFO grouping MPLS-STATIC-LSP-INFO { description "Static LSP information"; container label { description "Label Information"; uses MPLS-STATIC-LBL-INFO; } // container label leaf lsp-name-xr { type string; description "LSP Name"; } } // grouping MPLS-STATIC-LSP-INFO } // submodule Cisco-IOS-XR-mpls-static-oper-sub1
© 2023 YumaWorks, Inc. All rights reserved.