This submodule contains a collection of YANG definitions for Cisco IOS-XR ipv4-bgp-oc package operational data. Copyright (c) 2...
Version: 2020-01-28
submodule Cisco-IOS-XR-ipv4-bgp-oc-oper-sub1 { yang-version 1; belongs-to Cisco-IOS-XR-ipv4-bgp-oc-oper { prefix Cisco-IOS-XR-ipv4-bgp-oc-oper; } import ietf-inet-types { prefix inet; } import ietf-yang-types { prefix yang; } 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 ipv4-bgp-oc package operational data. Copyright (c) 2013-2020 by Cisco Systems, Inc. All rights reserved."; revision "2020-01-28" { description "Removing unsupported InvalidReason"; } revision "2019-08-31" { description "Fixing revision error in module."; } revision "2019-04-05" { description "Fixing backward compatibility error in module"; } revision "2019-04-05" { description "Establish semantic version baseline."; } revision "2017-09-07" { description "Fixed type translation error."; } revision "2017-05-01" { description "Fixing backward compatibility error in module."; } revision "2015-11-09" { description "IOS XR 6.0 revision."; } semver:module-version "3.0.0"; semver:module-version "2.0.0"; semver:module-version "1.0.0"; typedef Bgp-oc-origin-attr { type enumeration { enum "igp" { value 0; description "IGP"; } enum "egp" { value 1; description "EGP"; } enum "incomplete" { value 2; description "Incomplete"; } } description "Origin Type"; } typedef Ipv6-address { type inet:ipv6-address; description "IPV6 Address type"; } typedef Bgp-oc-afi { type enumeration { enum "ipv4" { value 0; description "IPv4 unicast"; } enum "ipv6" { value 5; description "IPv6 unicast"; } } description "BGP Address family"; } grouping BGP-OC-RIB-COMMON-BAG { description "OpenConfig BGP_RIB common attributes"; leaf num-routes { type uint64; description "NumRoutes"; } } // grouping BGP-OC-RIB-COMMON-BAG grouping BGP-OC-DATE-AND-TIME { description "BGP OC DATE AND TIME"; leaf time-value { type string; description "TimeValue"; } } // grouping BGP-OC-DATE-AND-TIME grouping BGP-OC-UNKNOWN-ATTR-TYPE { description "BGP OC UNKNOWN ATTR TYPE"; leaf attribute-type { type uint16; description "BGP attribute type that is unknown or not understood"; } leaf attribute-length { type uint16; description "BGP attribute length that is unknown or not understood"; } leaf attribute-value { type yang:hex-string; description "BGP attribute value that is unknown or not understood"; } } // grouping BGP-OC-UNKNOWN-ATTR-TYPE grouping BGP-OC-EXT-ATTR { description "BGP OC EXT ATTR"; leaf originator-id { type inet:ipv4-address; description "BGP Originator ID"; } leaf aigp { type uint64; description "Accumulated Interior Gateway Protocol (AIGP) metric value"; } leaf path-id { type uint32; description "BGP Path Identifier"; } leaf-list cluster { type inet:ipv4-address; description "List of cluster IDs"; } list ext-community { description "Array of extended communities"; uses BGP-OC-STRING-TYPE; } // list ext-community list unknown-attributes { description "List of BGP attributes that are unknown"; uses BGP-OC-UNKNOWN-ATTR-TYPE; } // list unknown-attributes } // grouping BGP-OC-EXT-ATTR grouping BGP-OC-STRING-TYPE { description "Names of bgp oc objects"; leaf objects { type string; description "BGP OC objects"; } } // grouping BGP-OC-STRING-TYPE grouping BGP-OC-AGGREGATOR-TYPE { description "BGP OC AGGREGATOR TYPE"; leaf as { type uint32; description "AS number"; } leaf as4 { type uint32; description "AS4 number"; } leaf address { type inet:ipv4-address; description "IPv4 address"; } } // grouping BGP-OC-AGGREGATOR-TYPE grouping BGP-OC-ROUTE-ATTR { description "BGP OC ROUTE ATTR"; container next-hop { description "NextHopAddress"; uses BGP-OC-ADDRTYPE; } // container next-hop container aggregrator-attributes { description "AggregatorList"; uses BGP-OC-AGGREGATOR-TYPE; } // container aggregrator-attributes leaf origin-type { type Bgp-oc-origin-attr; description "Origin Attribute Type"; } leaf as-path { type string; description "AS Path"; } leaf as4-path { type string; description "AS4 Path"; } leaf med { type uint32; description "Med"; } leaf local-pref { type uint32; description "LocalPref"; } leaf atomic-aggr { type boolean; description "AtomicAggr"; } list community { description "CommunityArray"; uses BGP-OC-STRING-TYPE; } // list community } // grouping BGP-OC-ROUTE-ATTR grouping BGP-OC-ADDRTYPE { description "BGP OC ADDRTYPE"; leaf afi { type Bgp-oc-afi; description "AFI"; } leaf ipv4-address { when "../afi = 'ipv4'" { description "../AFI = 'IPv4'"; } type inet:ipv4-address; description "IPv4 Addr"; } leaf ipv6-address { when "../afi = 'ipv6'" { description "../AFI = 'IPv6'"; } type Ipv6-address; description "IPv6 Addr"; } } // grouping BGP-OC-ADDRTYPE grouping BGP-OC-PREFIXTYPE { description "BGP OC PREFIXTYPE"; container prefix { description "IPv4 or IPv6 network address prefix"; uses BGP-OC-ADDRTYPE; } // container prefix leaf prefix-length { type uint8; description "Length of the subnet prefix"; } } // grouping BGP-OC-PREFIXTYPE grouping BGP-OC-ROUTE-BAG { description "OpenConfig BGP_RIB Route"; container prefix-name { description "Prefix"; uses BGP-OC-PREFIXTYPE; } // container prefix-name container route-attr-list { description "RouteAttributesList"; uses BGP-OC-ROUTE-ATTR; } // container route-attr-list container ext-attributes-list { description "ExtAttributesList"; uses BGP-OC-EXT-ATTR; } // container ext-attributes-list container last-modified-date { description "LastModifiedDate"; uses BGP-OC-DATE-AND-TIME; } // container last-modified-date container last-update-recieved { description "LastUpdateRecieved"; uses BGP-OC-DATE-AND-TIME; } // container last-update-recieved leaf valid-route { type boolean; description "ValidRoute"; } leaf best-path { type boolean; description "BestPath"; } } // grouping BGP-OC-ROUTE-BAG } // submodule Cisco-IOS-XR-ipv4-bgp-oc-oper-sub1
© 2024 YumaWorks, Inc. All rights reserved.