Cisco-IOS-XE-bgp-oper

This module contains a collection of YANG definitions for bgp operational data. Copyright (c) 2016-2020 by Cisco Systems, Inc. A...

  • Version: 2020-11-01

    Cisco-IOS-XE-bgp-oper@2020-11-01


    
      module Cisco-IOS-XE-bgp-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-bgp-oper";
    
        prefix bgp-ios-xe-oper;
    
        import Cisco-IOS-XE-bgp-common-oper {
          prefix bgp-common-ios-xe-oper;
        }
        import Cisco-IOS-XE-bgp-route-oper {
          prefix bgp-route-ios-xe-oper;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import cisco-semver {
          prefix cisco-semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
    
         Postal: 170 W Tasman Drive
         San Jose, CA 95134
    
         Tel: +1 1800 553-NETS
    
         E-mail: cs-yang@cisco.com";
    
        description
          "This module contains a collection of YANG definitions
         for bgp operational data.
         Copyright (c) 2016-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-11-01" {
          description
            "Added Peer Policy template";
          reference
            "3.0.0";
    
        }
    
        revision "2019-11-01" {
          description
            "Added neighbor EVPN encapsulation preference.";
          reference
            "2.5.0";
    
        }
    
        revision "2019-05-01" {
          description
            "- Added AO leaf descriptions.
           - Added semantic version";
          reference
            "2.4.0";
    
        }
    
        revision "2018-10-29" {
          description
            "Cleaned up spelling errors in descriptions.";
          reference
            "2.3.0";
    
        }
    
        revision "2017-09-25" {
          description
            "Properly indicated leaf-list ordering";
          reference
            "2.2.0";
    
        }
    
        revision "2017-05-12" {
          description
            "Added the BGP RD description";
          reference
            "2.1.0";
    
        }
    
        revision "2017-04-01" {
          description
            "Top level container name change. Enumeration name changes.";
          reference
            "2.0.0";
    
        }
    
        revision "2017-02-07" {
          description "Initial revision";
          reference
            "1.0.0";
    
        }
    
        cisco-semver:module-version "3.0.0";
        cisco-semver:module-version "2.5.0";
        cisco-semver:module-version "2.4.0";
        cisco-semver:module-version "2.3.0";
        cisco-semver:module-version "2.2.0";
        cisco-semver:module-version "2.1.0";
        cisco-semver:module-version "2.0.0";
        cisco-semver:module-version "1.0.0";
    
        typedef bgp-link {
          type enumeration {
            enum "internal" {
              value 0;
              description "iBGP neighbors";
            }
            enum "external" {
              value 1;
              description "eBGP neighbors";
            }
          }
          description
            "Operational state relevant to bgp global neighbor";
        }
    
        typedef bgp-fsm-state {
          type enumeration {
            enum "fsm-idle" {
              value 0;
              description
                "neighbor is in Idle state";
            }
            enum "fsm-connect" {
              value 1;
              description
                "neighbor is in Connect state";
            }
            enum "fsm-active" {
              value 2;
              description
                "neighbor is in Active state";
            }
            enum "fsm-opensent" {
              value 3;
              description
                "neighbor is in OpenSent state";
            }
            enum "fsm-openconfirm" {
              value 4;
              description
                "neighbor is in OpenConfirm state";
            }
            enum "fsm-established" {
              value 5;
              description
                "neighbor is in Established state";
            }
            enum "fsm-nonnegotiated" {
              value 6;
              description
                "neighbor is Non Negotiated";
            }
          }
          description "BGP FSM State";
        }
    
        typedef bgp-mode {
          type enumeration {
            enum "mode-active" {
              value 0;
              description "active connection";
            }
            enum "mode-passive" {
              value 1;
              description "passive connection";
            }
          }
          description "BGP mode";
        }
    
        typedef bgp-encaps-pref {
          type enumeration {
            enum "encaps-pref-unset" {
              value 0;
              description
                "Encapsulation preference is not set";
            }
            enum "encaps-pref-any" {
              value 1;
              description
                "No encapsulation is preferred";
            }
            enum "encaps-pref-vxlan-if-vtep-up" {
              value 2;
              description
                "Use VxLAN if VTEP is UP else use MPLS";
            }
            enum "encaps-pref-vxlan" {
              value 3;
              description
                "Prefer VxLAN encapsulation";
            }
            enum "encaps-pref-mpls" {
              value 4;
              description
                "Prefer MPLS encapsulation";
            }
          }
          description
            "BGP encapsulation preferences";
        }
    
        container bgp-state-data {
          config false;
          description
            "BGP operational state data";
          container neighbors {
            description
              "BGP neighbor information";
            list neighbor {
              key "afi-safi vrf-name neighbor-id";
              description
                "List of BGP neighbors";
              leaf afi-safi {
                type bgp-common-ios-xe-oper:afi-safi;
                description "Afi-safi key";
              }
    
              leaf vrf-name {
                type string;
                description "VRF name";
              }
    
              leaf neighbor-id {
                type string;
                description
                  "Neighbor identifier";
              }
    
              leaf description {
                type string;
                description
                  "Neighbor description string";
              }
    
              leaf bgp-version {
                type uint16;
                description
                  "BGP version being used to communicate
    with the remote router";
              }
    
              leaf link {
                type bgp-link;
                description "Neighbor link type";
              }
    
              leaf up-time {
                type string;
                description
                  "Amount of time the bgp session has been
    up since being established";
              }
    
              leaf last-write {
                type string;
                description
                  "Time since BGP last sent a message to the neighbor";
              }
    
              leaf last-read {
                type string;
                description
                  "Time since BGP last received a message from the neighbor";
              }
    
              leaf installed-prefixes {
                type uint32;
                description
                  "The number of installed prefixes";
              }
    
              leaf session-state {
                type bgp-fsm-state;
                description
                  "BGP neighbor session state";
              }
    
              container negotiated-keepalive-timers {
                description
                  "Negotiated keepalive timers status of BGP neighbor";
                leaf hold-time {
                  type uint16;
                  description "Hold time";
                }
    
                leaf keepalive-interval {
                  type uint16;
                  description
                    "Keepalive interval";
                }
              }  // container negotiated-keepalive-timers
    
              leaf-list negotiated-cap {
                type string;
                ordered-by user;
                description
                  "Negotiated capabilities for neighbor session";
              }
    
              container bgp-neighbor-counters {
                description
                  "BGP neighbor session counters";
                container sent {
                  description
                    "Number of messages sent";
                  leaf opens {
                    type uint32;
                    description
                      "OPEN message count";
                  }
    
                  leaf updates {
                    type uint32;
                    description
                      "UPDATE message count";
                  }
    
                  leaf notifications {
                    type uint32;
                    description
                      "NOTIFICATION message count";
                  }
    
                  leaf keepalives {
                    type uint32;
                    description
                      "KEEPALIVE message count";
                  }
    
                  leaf route-refreshes {
                    type uint32;
                    description
                      "Route refresh message count";
                  }
                }  // container sent
    
                container received {
                  description
                    "Number of messages received";
                  leaf opens {
                    type uint32;
                    description
                      "OPEN message count";
                  }
    
                  leaf updates {
                    type uint32;
                    description
                      "UPDATE message count";
                  }
    
                  leaf notifications {
                    type uint32;
                    description
                      "NOTIFICATION message count";
                  }
    
                  leaf keepalives {
                    type uint32;
                    description
                      "KEEPALIVE message count";
                  }
    
                  leaf route-refreshes {
                    type uint32;
                    description
                      "Route refresh message count";
                  }
                }  // container received
    
                leaf inq-depth {
                  type uint32;
                  description "Input Q depth";
                }
    
                leaf outq-depth {
                  type uint32;
                  description "Output Q depth";
                }
              }  // container bgp-neighbor-counters
    
              container connection {
                description
                  "BGP neighbor connection";
                leaf state {
                  type bgp-common-ios-xe-oper:tcp-fsm-state;
                  description "TCP FSM state";
                }
    
                leaf mode {
                  type bgp-mode;
                  description
                    "BGP transport connection mode";
                }
    
                leaf total-established {
                  type uint32;
                  description
                    "The number of times a TCP and BGP
    connection has been successfully established";
                }
    
                leaf total-dropped {
                  type uint32;
                  description
                    "The number of times that a valid
    session has failed or been taken down";
                }
    
                leaf last-reset {
                  type string;
                  description
                    "Time since peering session was last reset";
                }
    
                leaf reset-reason {
                  type string;
                  description
                    "The reason for the last reset";
                }
              }  // container connection
    
              container transport {
                description
                  "BGP neighbor transport";
                leaf path-mtu-discovery {
                  type boolean;
                  description
                    "Indication whether path MTU discovery is enabled";
                }
    
                leaf local-port {
                  type uint32;
                  description
                    "Local TCP port used for TCP session";
                }
    
                leaf local-host {
                  type inet:ip-address;
                  description
                    "Local address used for the TCP session";
                }
    
                leaf foreign-port {
                  type uint32;
                  description
                    "Remote port used by the peer for the TCP session";
                }
    
                leaf foreign-host {
                  type inet:ip-address;
                  description
                    "Remote address of the BGP session";
                }
    
                leaf mss {
                  type uint32;
                  description
                    "Maximum Data segment size";
                }
    
                leaf ao-keychain-name {
                  type string;
                  description
                    "Name of the Key Chain for AO";
                }
    
                leaf ao-key-id {
                  type int32;
                  description
                    "ID of the key for AO";
                }
    
                leaf ao-incl-tcp-opts {
                  type boolean;
                  description
                    "AO Include TCP Options";
                }
    
                leaf ao-accept-mismatch-conn {
                  type boolean;
                  description
                    "AO Accept Mismatched Connections";
                }
              }  // container transport
    
              container prefix-activity {
                description
                  "BGP neighbor activity";
                container sent {
                  description
                    "Number of prefixes sent";
                  leaf current-prefixes {
                    type uint64;
                    description
                      "The current number of accepted prefixes";
                  }
    
                  leaf total-prefixes {
                    type uint64;
                    description
                      "The total number of accepted prefixes";
                  }
    
                  leaf implicit-withdraw {
                    type uint64;
                    description
                      "The number of times a prefix has been
    withdrawn and readvertised";
                  }
    
                  leaf explicit-withdraw {
                    type uint64;
                    description
                      "The number of times a prefix has been
    withdrawn because it is no longer feasible";
                  }
    
                  leaf bestpaths {
                    type uint64;
                    description
                      "The number of received prefixes installed as best paths";
                  }
    
                  leaf multipaths {
                    type uint64;
                    description
                      "The number of received prefixes installed as multipaths";
                  }
                }  // container sent
    
                container received {
                  description
                    "Number of prefixes received";
                  leaf current-prefixes {
                    type uint64;
                    description
                      "The current number of accepted prefixes";
                  }
    
                  leaf total-prefixes {
                    type uint64;
                    description
                      "The total number of accepted prefixes";
                  }
    
                  leaf implicit-withdraw {
                    type uint64;
                    description
                      "The number of times a prefix has been
    withdrawn and readvertised";
                  }
    
                  leaf explicit-withdraw {
                    type uint64;
                    description
                      "The number of times a prefix has been
    withdrawn because it is no longer feasible";
                  }
    
                  leaf bestpaths {
                    type uint64;
                    description
                      "The number of received prefixes installed as best paths";
                  }
    
                  leaf multipaths {
                    type uint64;
                    description
                      "The number of received prefixes installed as multipaths";
                  }
                }  // container received
              }  // container prefix-activity
    
              leaf as {
                type uint32;
                description
                  "BGP neighbor AS number";
              }
    
              leaf encaps-pref {
                type bgp-encaps-pref;
                description
                  "Preferred tunnel encapsulation type";
              }
    
              container peer-policy {
                description
                  "Peer policy template";
                leaf name {
                  type string;
                  description
                    "Name of the Peer Policy";
                }
    
                leaf total-inherited {
                  type uint32;
                  description
                    "Total number of inherited policies";
                }
    
                leaf index {
                  type uint32;
                  description
                    "Index of the peer policy";
                }
    
                container configured-policies {
                  description
                    "Configured policies in a peer policy";
                  leaf distribute-list-in {
                    type string;
                    description
                      "Incoming update network filter list name";
                  }
    
                  leaf prefix-list-in {
                    type string;
                    description
                      "Incoming update prefix filter list name";
                  }
    
                  leaf filter-list-in {
                    type uint32;
                    description
                      "Incoming update AS path filter list";
                  }
    
                  leaf route-map-in {
                    type string;
                    description
                      "Route map for incoming advertisements";
                  }
    
                  leaf prefix-list-out {
                    type string;
                    description
                      "Outgoing update prefix filter list name";
                  }
    
                  leaf distribute-list-out {
                    type string;
                    description
                      "Outgoing update network filter list name";
                  }
    
                  leaf filter-list-out {
                    type uint32;
                    description
                      "Outgoing update AS path filter list";
                  }
    
                  leaf route-map-out {
                    type string;
                    description
                      "Route map for outgoing advertisements";
                  }
    
                  leaf unsuppress-map {
                    type string;
                    description
                      "Route map for selective unsuppress";
                  }
    
                  leaf default-originate {
                    type boolean;
                    description
                      "Originate default route to this neighbor";
                  }
    
                  leaf default-map {
                    type string;
                    description
                      "Set a command to its defaults";
                  }
    
                  leaf weight {
                    type uint32;
                    description
                      "Set default weight for routes from this neighbor";
                  }
    
                  leaf soft-reconfig-in {
                    type boolean;
                    description
                      "Per neighbor soft reconfiguration";
                  }
    
                  leaf maximum-prefix {
                    type uint32;
                    description
                      "Maximum number of prefixes accepted from this peer";
                  }
    
                  leaf max-prefix-threshold {
                    type uint32;
                    description
                      "Max prefix threshold";
                  }
    
                  leaf max-prefix-warning {
                    type boolean;
                    description
                      "Max prefix warning";
                  }
    
                  leaf max-pfx-restart-interval {
                    type uint32;
                    description
                      "Max prefix restart interval";
                  }
    
                  leaf as-override {
                    type boolean;
                    description
                      "Override matching AS number while sending update";
                  }
    
                  leaf as-override-split-horizon {
                    type boolean;
                    description
                      "Split horizon processing before sending updates";
                  }
    
                  leaf allow-as {
                    type uint32;
                    description
                      "Accept as-path with my AS present in it";
                  }
    
                  leaf allow-policy {
                    type boolean;
                    description
                      "Enable the policy support for this IBGP Neighbor";
                  }
    
                  leaf rr-client {
                    type boolean;
                    description
                      "Configure a neighbor as Route Reflector client";
                  }
    
                  leaf aigp {
                    type boolean;
                    description
                      "aigp attribute sent to this neighbor";
                  }
    
                  leaf aigp-med {
                    type boolean;
                    description
                      "aigp as med attribute sent to this neighbor";
                  }
    
                  leaf aigp-cost {
                    type boolean;
                    description
                      "aigp as cost-community attribute sent to this neighbor";
                  }
    
                  leaf internal-vpn-client {
                    type boolean;
                    description
                      "Internal vpn client";
                  }
    
                  leaf advertisement-interval {
                    type uint32;
                    description
                      "Advertisement interval";
                  }
    
                  leaf nexthop-unchanged {
                    type boolean;
                    description
                      "Propagate the iBGP path's next hop unchanged for this neighbor";
                  }
    
                  leaf nexthop-unchanged-all {
                    type boolean;
                    description
                      "Propagate next hop unchanged for all paths to this neighbor";
                  }
    
                  leaf nexthop-self {
                    type boolean;
                    description
                      "Disable the next hop calculation for this neighbor";
                  }
    
                  leaf nexthop-self-all {
                    type boolean;
                    description
                      "Disable the next hop EBGP calculation for this neighbor";
                  }
    
                  leaf add-path-send {
                    type boolean;
                    description
                      "Advertise additional paths ";
                  }
    
                  leaf add-path-rx {
                    type boolean;
                    description
                      "Receive additional paths";
                  }
    
                  leaf adv-add-path-all {
                    type boolean;
                    description
                      "Advertise all paths";
                  }
    
                  leaf adv-add-path-grp-best {
                    type boolean;
                    description
                      "Advertise best paths";
                  }
    
                  leaf adv-add-path-bestn {
                    type uint32;
                    description
                      "Advertise best n paths";
                  }
    
                  leaf adv-diverse-path {
                    type string;
                    description
                      "Advertise diverse path";
                  }
    
                  leaf adv-best-ext {
                    type boolean;
                    description
                      "Advertise best external path";
                  }
    
                  leaf slow-peer-static {
                    type boolean;
                    description
                      "Slow peer static";
                  }
    
                  leaf sp-detect-thold {
                    type uint32;
                    description
                      "Slow peer detection threshold";
                  }
    
                  leaf sp-dynamic {
                    type boolean;
                    description
                      "Slow update group";
                  }
    
                  leaf sp-protection-permanent {
                    type boolean;
                    description
                      "Slow peer protection permanent";
                  }
    
                  leaf send-community {
                    type string;
                    description
                      "Send community attribute to this neighbor";
                  }
    
                  leaf flow-spec-validation-off {
                    type boolean;
                    description
                      "Disable flow spec validation";
                  }
    
                  leaf valid-redirect-off {
                    type boolean;
                    description
                      "Disable validations on Redirect-IP ext comm";
                  }
    
                  leaf remove-private-as {
                    type boolean;
                    description
                      "Remove private AS number for outbound updates";
                  }
    
                  leaf remove-private-as-all {
                    type boolean;
                    description
                      "Remove private AS all";
                  }
    
                  leaf rm-private-as-replace-as {
                    type boolean;
                    description
                      "Replace private AS";
                  }
    
                  leaf extcommunity {
                    type string;
                    description
                      "extcommunity description";
                  }
    
                  leaf rpki-state-enabled {
                    type boolean;
                    description
                      "RPKI-State extended community enabled";
                  }
    
                  leaf dmzlink-bw {
                    type boolean;
                    description
                      "Propagate the DMZ link bandwidth";
                  }
    
                  leaf send-label {
                    type boolean;
                    description
                      "Send Label to this peer";
                  }
    
                  leaf send-label-explicit-null {
                    type boolean;
                    description
                      "Send Label explicit null";
                  }
    
                  leaf encap {
                    type string;
                    description
                      "Preferred encapsulation name for the neighbor";
                  }
    
                  leaf cap-orf-prefix-list {
                    type string;
                    description
                      "Advertise capability to the peer";
                  }
    
                  leaf translate-topology {
                    type uint32;
                    description
                      "Translate topology";
                  }
    
                  leaf accept-route-legacy-rt {
                    type boolean;
                    description
                      "Accept route legacy rt";
                  }
    
                  leaf inter-as-hybrid {
                    type boolean;
                    description
                      "Enable Inter AS hybrid";
                  }
    
                  leaf suppress-ldp {
                    type boolean;
                    description "Suppress ldp";
                  }
    
                  leaf llgr-stale-time-send {
                    type uint32;
                    description
                      "Send long live graceful restart stale time";
                  }
    
                  leaf llgr-stale-time-accept {
                    type uint32;
                    description
                      "Receive long live graceful restart stale time";
                  }
                }  // container configured-policies
    
                container inherited-policies {
                  description
                    "Inherited policies in a peer policy";
                  leaf-list name {
                    type string;
                    ordered-by user;
                    description
                      "Name of the inherited peer policy";
                  }
    
                  container configured-policies {
                    description
                      "Configured policies in a peer policy";
                    leaf distribute-list-in {
                      type string;
                      description
                        "Incoming update network filter list name";
                    }
    
                    leaf prefix-list-in {
                      type string;
                      description
                        "Incoming update prefix filter list name";
                    }
    
                    leaf filter-list-in {
                      type uint32;
                      description
                        "Incoming update AS path filter list";
                    }
    
                    leaf route-map-in {
                      type string;
                      description
                        "Route map for incoming advertisements";
                    }
    
                    leaf prefix-list-out {
                      type string;
                      description
                        "Outgoing update prefix filter list name";
                    }
    
                    leaf distribute-list-out {
                      type string;
                      description
                        "Outgoing update network filter list name";
                    }
    
                    leaf filter-list-out {
                      type uint32;
                      description
                        "Outgoing update AS path filter list";
                    }
    
                    leaf route-map-out {
                      type string;
                      description
                        "Route map for outgoing advertisements";
                    }
    
                    leaf unsuppress-map {
                      type string;
                      description
                        "Route map for selective unsuppress";
                    }
    
                    leaf default-originate {
                      type boolean;
                      description
                        "Originate default route to this neighbor";
                    }
    
                    leaf default-map {
                      type string;
                      description
                        "Set a command to its defaults";
                    }
    
                    leaf weight {
                      type uint32;
                      description
                        "Set default weight for routes from this neighbor";
                    }
    
                    leaf soft-reconfig-in {
                      type boolean;
                      description
                        "Per neighbor soft reconfiguration";
                    }
    
                    leaf maximum-prefix {
                      type uint32;
                      description
                        "Maximum number of prefixes accepted from this peer";
                    }
    
                    leaf max-prefix-threshold {
                      type uint32;
                      description
                        "Max prefix threshold";
                    }
    
                    leaf max-prefix-warning {
                      type boolean;
                      description
                        "Max prefix warning";
                    }
    
                    leaf max-pfx-restart-interval {
                      type uint32;
                      description
                        "Max prefix restart interval";
                    }
    
                    leaf as-override {
                      type boolean;
                      description
                        "Override matching AS number while sending update";
                    }
    
                    leaf as-override-split-horizon {
                      type boolean;
                      description
                        "Split horizon processing before sending updates";
                    }
    
                    leaf allow-as {
                      type uint32;
                      description
                        "Accept as-path with my AS present in it";
                    }
    
                    leaf allow-policy {
                      type boolean;
                      description
                        "Enable the policy support for this IBGP Neighbor";
                    }
    
                    leaf rr-client {
                      type boolean;
                      description
                        "Configure a neighbor as Route Reflector client";
                    }
    
                    leaf aigp {
                      type boolean;
                      description
                        "aigp attribute sent to this neighbor";
                    }
    
                    leaf aigp-med {
                      type boolean;
                      description
                        "aigp as med attribute sent to this neighbor";
                    }
    
                    leaf aigp-cost {
                      type boolean;
                      description
                        "aigp as cost-community attribute sent to this neighbor";
                    }
    
                    leaf internal-vpn-client {
                      type boolean;
                      description
                        "Internal vpn client";
                    }
    
                    leaf advertisement-interval {
                      type uint32;
                      description
                        "Advertisement interval";
                    }
    
                    leaf nexthop-unchanged {
                      type boolean;
                      description
                        "Propagate the iBGP path's next hop unchanged for this neighbor";
                    }
    
                    leaf nexthop-unchanged-all {
                      type boolean;
                      description
                        "Propagate next hop unchanged for all paths to this neighbor";
                    }
    
                    leaf nexthop-self {
                      type boolean;
                      description
                        "Disable the next hop calculation for this neighbor";
                    }
    
                    leaf nexthop-self-all {
                      type boolean;
                      description
                        "Disable the next hop EBGP calculation for this neighbor";
                    }
    
                    leaf add-path-send {
                      type boolean;
                      description
                        "Advertise additional paths ";
                    }
    
                    leaf add-path-rx {
                      type boolean;
                      description
                        "Receive additional paths";
                    }
    
                    leaf adv-add-path-all {
                      type boolean;
                      description
                        "Advertise all paths";
                    }
    
                    leaf adv-add-path-grp-best {
                      type boolean;
                      description
                        "Advertise best paths";
                    }
    
                    leaf adv-add-path-bestn {
                      type uint32;
                      description
                        "Advertise best n paths";
                    }
    
                    leaf adv-diverse-path {
                      type string;
                      description
                        "Advertise diverse path";
                    }
    
                    leaf adv-best-ext {
                      type boolean;
                      description
                        "Advertise best external path";
                    }
    
                    leaf slow-peer-static {
                      type boolean;
                      description
                        "Slow peer static";
                    }
    
                    leaf sp-detect-thold {
                      type uint32;
                      description
                        "Slow peer detection threshold";
                    }
    
                    leaf sp-dynamic {
                      type boolean;
                      description
                        "Slow update group";
                    }
    
                    leaf sp-protection-permanent {
                      type boolean;
                      description
                        "Slow peer protection permanent";
                    }
    
                    leaf send-community {
                      type string;
                      description
                        "Send community attribute to this neighbor";
                    }
    
                    leaf flow-spec-validation-off {
                      type boolean;
                      description
                        "Disable flow spec validation";
                    }
    
                    leaf valid-redirect-off {
                      type boolean;
                      description
                        "Disable validations on Redirect-IP ext comm";
                    }
    
                    leaf remove-private-as {
                      type boolean;
                      description
                        "Remove private AS number for outbound updates";
                    }
    
                    leaf remove-private-as-all {
                      type boolean;
                      description
                        "Remove private AS all";
                    }
    
                    leaf rm-private-as-replace-as {
                      type boolean;
                      description
                        "Replace private AS";
                    }
    
                    leaf extcommunity {
                      type string;
                      description
                        "extcommunity description";
                    }
    
                    leaf rpki-state-enabled {
                      type boolean;
                      description
                        "RPKI-State extended community enabled";
                    }
    
                    leaf dmzlink-bw {
                      type boolean;
                      description
                        "Propagate the DMZ link bandwidth";
                    }
    
                    leaf send-label {
                      type boolean;
                      description
                        "Send Label to this peer";
                    }
    
                    leaf send-label-explicit-null {
                      type boolean;
                      description
                        "Send Label explicit null";
                    }
    
                    leaf encap {
                      type string;
                      description
                        "Preferred encapsulation name for the neighbor";
                    }
    
                    leaf cap-orf-prefix-list {
                      type string;
                      description
                        "Advertise capability to the peer";
                    }
    
                    leaf translate-topology {
                      type uint32;
                      description
                        "Translate topology";
                    }
    
                    leaf accept-route-legacy-rt {
                      type boolean;
                      description
                        "Accept route legacy rt";
                    }
    
                    leaf inter-as-hybrid {
                      type boolean;
                      description
                        "Enable Inter AS hybrid";
                    }
    
                    leaf suppress-ldp {
                      type boolean;
                      description "Suppress ldp";
                    }
    
                    leaf llgr-stale-time-send {
                      type uint32;
                      description
                        "Send long live graceful restart stale time";
                    }
    
                    leaf llgr-stale-time-accept {
                      type uint32;
                      description
                        "Receive long live graceful restart stale time";
                    }
                  }  // container configured-policies
                }  // container inherited-policies
              }  // container peer-policy
            }  // list neighbor
          }  // container neighbors
    
          container address-families {
            description "BGP address family";
            list address-family {
              key "afi-safi vrf-name";
              description
                "List of BGP address families";
              leaf afi-safi {
                type bgp-common-ios-xe-oper:afi-safi;
                description "Afi-safi value";
              }
    
              leaf vrf-name {
                type string;
                description "VRF name";
              }
    
              leaf router-id {
                type inet:ip-address;
                description "Router ID";
              }
    
              leaf bgp-table-version {
                type uint64;
                description
                  "BGP table version number";
              }
    
              leaf routing-table-version {
                type uint64;
                description
                  "Routing table version number";
              }
    
              container prefixes {
                description
                  "Prefix entry statistics";
                leaf total-entries {
                  type uint64;
                  description
                    "The total number of prefix entries";
                }
    
                leaf memory-usage {
                  type uint64;
                  description
                    "Total memory usage in byte";
                }
              }  // container prefixes
    
              container path {
                description
                  "Path entry statistics";
                leaf total-entries {
                  type uint64;
                  description
                    "The total number of prefix entries";
                }
    
                leaf memory-usage {
                  type uint64;
                  description
                    "Total memory usage in byte";
                }
              }  // container path
    
              container as-path {
                description
                  "AS path entry statistics";
                leaf total-entries {
                  type uint64;
                  description
                    "The total number of prefix entries";
                }
    
                leaf memory-usage {
                  type uint64;
                  description
                    "Total memory usage in byte";
                }
              }  // container as-path
    
              container route-map {
                description
                  "Route map entry statistics";
                leaf total-entries {
                  type uint64;
                  description
                    "The total number of prefix entries";
                }
    
                leaf memory-usage {
                  type uint64;
                  description
                    "Total memory usage in byte";
                }
              }  // container route-map
    
              container filter-list {
                description
                  "Filter list entry statistics";
                leaf total-entries {
                  type uint64;
                  description
                    "The total number of prefix entries";
                }
    
                leaf memory-usage {
                  type uint64;
                  description
                    "Total memory usage in byte";
                }
              }  // container filter-list
    
              container activities {
                description
                  "BGP activity information";
                leaf prefixes {
                  type uint64;
                  description
                    "Total number of prefixes";
                }
    
                leaf paths {
                  type uint64;
                  description
                    "Total number of paths";
                }
    
                leaf scan-interval {
                  type string;
                  description
                    "Scan interval in seconds";
                }
              }  // container activities
    
              leaf total-memory {
                type uint64;
                description
                  "Total memory in use";
              }
    
              container bgp-neighbor-summaries {
                description "Neighbor summary";
                list bgp-neighbor-summary {
                  key "id";
                  description
                    "List of neighbor summaries";
                  leaf id {
                    type string;
                    description
                      "Neighbor address";
                  }
    
                  leaf bgp-version {
                    type uint32;
                    description
                      "BGP protocol version";
                  }
    
                  leaf messages-received {
                    type uint64;
                    description
                      "Number of messages received from this neighbor";
                  }
    
                  leaf messages-sent {
                    type uint64;
                    description
                      "Number of messages sent to this neighbor";
                  }
    
                  leaf table-version {
                    type uint64;
                    description
                      "BGP table version";
                  }
    
                  leaf input-queue {
                    type uint64;
                    description
                      "Number of messages in input queue";
                  }
    
                  leaf output-queue {
                    type uint64;
                    description
                      "Number of messages in output queue";
                  }
    
                  leaf up-time {
                    type string;
                    description
                      "Neighbor session uptime";
                  }
    
                  leaf state {
                    type bgp-fsm-state;
                    description
                      "BGP session state";
                  }
    
                  leaf prefixes-received {
                    type uint64;
                    description
                      "Number of prefixes received from the neighbor";
                  }
    
                  leaf dynamically-configured {
                    type boolean;
                    description
                      "Indication of whether the neighbor was
    dynamically configured";
                  }
    
                  leaf as {
                    type uint32;
                    description
                      "BGP neighbor AS number";
                  }
                }  // list bgp-neighbor-summary
              }  // container bgp-neighbor-summaries
    
              leaf local-as {
                type uint32;
                description "Local AS number";
              }
            }  // list address-family
          }  // container address-families
    
          container bgp-route-vrfs {
            description "BGP VRFs";
            list bgp-route-vrf {
              key "vrf";
              description "List of BGP VRFs";
              leaf vrf {
                type string;
                description "BGP VRF";
              }
    
              container bgp-route-afs {
                description
                  "BGP address families";
                list bgp-route-af {
                  key "afi-safi";
                  description
                    "List of BGP address families";
                  leaf afi-safi {
                    type bgp-common-ios-xe-oper:afi-safi;
                    description
                      "BGP address family";
                  }
    
                  container bgp-route-filters {
                    description
                      "BGP route filters";
                    list bgp-route-filter {
                      key "route-filter";
                      description
                        "List of BGP route filters";
                      leaf route-filter {
                        type bgp-route-ios-xe-oper:bgp-route-filters;
                        description
                          "BGP route filter";
                      }
    
                      container bgp-route-entries {
                        description
                          "BGP route entries";
                        list bgp-route-entry {
                          key "prefix";
                          description
                            "List of BGP route entries";
                          leaf prefix {
                            type string;
                            description
                              "Routing table entry prefix";
                          }
    
                          leaf version {
                            type uint32;
                            description
                              "Routing table version";
                          }
    
                          leaf available-paths {
                            type uint32;
                            description
                              "Number of paths available for BGP prefix";
                          }
    
                          leaf advertised-to {
                            type string;
                            description
                              "Whom the prefix is advertised to";
                          }
    
                          container bgp-path-entries {
                            description
                              "Prefix next hop details";
                            list bgp-path-entry {
                              key "nexthop";
                              description
                                "List of prefix next hop details";
                              leaf nexthop {
                                type string;
                                description
                                  "Next hop for this path";
                              }
    
                              leaf metric {
                                type uint32;
                                description
                                  "Metric associated with the path";
                              }
    
                              leaf local-pref {
                                type uint32;
                                description
                                  "Local preference for this path";
                              }
    
                              leaf weight {
                                type uint32;
                                description
                                  "Path weight";
                              }
    
                              leaf as-path {
                                type string;
                                description
                                  "AS path";
                              }
    
                              leaf origin {
                                type bgp-route-ios-xe-oper:bgp-origin-code;
                                description
                                  "Path origin";
                              }
    
                              container path-status {
                                description
                                  "Path status";
                                leaf suppressed {
                                  type empty;
                                  description
                                    "Suppressed path";
                                }
    
                                leaf damped {
                                  type empty;
                                  description
                                    "Damped path";
                                }
    
                                leaf history {
                                  type empty;
                                  description
                                    "History path";
                                }
    
                                leaf valid {
                                  type empty;
                                  description
                                    "Valid path";
                                }
    
                                leaf sourced {
                                  type empty;
                                  description
                                    "Sourced path";
                                }
    
                                leaf bestpath {
                                  type empty;
                                  description
                                    "Best path";
                                }
    
                                leaf internal {
                                  type empty;
                                  description
                                    "Internal path";
                                }
    
                                leaf rib-fail {
                                  type empty;
                                  description
                                    "RIB-fail path";
                                }
    
                                leaf stale {
                                  type empty;
                                  description
                                    "Stale path";
                                }
    
                                leaf multipath {
                                  type empty;
                                  description
                                    "Multipath path";
                                }
    
                                leaf backup-path {
                                  type empty;
                                  description
                                    "Backup path";
                                }
    
                                leaf rt-filter {
                                  type empty;
                                  description
                                    "RT filter path";
                                }
    
                                leaf best-external {
                                  type empty;
                                  description
                                    "Best external path";
                                }
    
                                leaf additional-path {
                                  type empty;
                                  description
                                    "Additional path";
                                }
    
                                leaf rib-compressed {
                                  type empty;
                                  description
                                    "RIB compressed path";
                                }
                              }  // container path-status
    
                              leaf rpki-status {
                                type bgp-route-ios-xe-oper:bgp-rpki-status;
                                description
                                  "RPKI path status";
                              }
    
                              leaf community {
                                type string;
                                description
                                  "Community label for the path";
                              }
    
                              leaf mpls-in {
                                type string;
                                description
                                  "MPLS label in for the path";
                              }
    
                              leaf mpls-out {
                                type string;
                                description
                                  "MPLS label out for the path";
                              }
    
                              leaf sr-profile-name {
                                type string;
                                description
                                  "SR profile name for the path";
                              }
    
                              leaf sr-binding-sid {
                                type uint32;
                                description
                                  "SR binding sid for the path";
                              }
    
                              leaf sr-label-indx {
                                type uint32;
                                description
                                  "SR label index for the path";
                              }
    
                              leaf as4-path {
                                type string;
                                description
                                  "path using 4-octet AS numbers";
                              }
    
                              leaf atomic-aggregate {
                                type boolean;
                                description
                                  "attribute indicating whether or not the prefix is an atomic aggregate";
                              }
    
                              leaf aggr-as-number {
                                type uint32;
                                description
                                  "AS number of autonomous system them performed the aggregation";
                              }
    
                              leaf aggr-as4-number {
                                type uint32;
                                description
                                  "AS4 number of autonomous system them performed the aggregation";
                              }
    
                              leaf aggr-address {
                                type string;
                                description
                                  "IP address of the router that performed the aggregation";
                              }
    
                              leaf originator-id {
                                type string;
                                description
                                  "the router ID of the originator of the route in the local AS";
                              }
    
                              leaf cluster-list {
                                type string;
                                description
                                  "the reflection path the route has passed";
                              }
    
                              leaf extended-community {
                                type string;
                                description
                                  "BGP extended community attribute";
                              }
    
                              leaf ext-aigp-metric {
                                type uint64;
                                description
                                  "the accumulated IGP metric for the path";
                              }
    
                              leaf path-id {
                                type uint32;
                                description
                                  "path identifier used to uniquely identify a route";
                              }
    
                              leaf path-origin {
                                type bgp-route-ios-xe-oper:bgp-path-origin;
                                description
                                  "Internal/External path";
                              }
                            }  // list bgp-path-entry
                          }  // container bgp-path-entries
                        }  // list bgp-route-entry
                      }  // container bgp-route-entries
                    }  // list bgp-route-filter
                  }  // container bgp-route-filters
    
                  container bgp-route-neighbors {
                    description
                      "BGP route neighbors";
                    list bgp-route-neighbor {
                      key "nbr-id";
                      description
                        "List of BGP route neighbors";
                      leaf nbr-id {
                        type string;
                        description
                          "BGP neighbor ID";
                      }
    
                      container bgp-neighbor-route-filters {
                        description
                          "BGP neighbor route filters";
                        list bgp-neighbor-route-filter {
                          key "nbr-fltr";
                          description
                            "List of BGP neighbor route filters";
                          leaf nbr-fltr {
                            type bgp-route-ios-xe-oper:bgp-neighbor-route-filters;
                            description
                              "BGP neighbor route filter";
                          }
    
                          container bgp-neighbor-route-entries {
                            description
                              "BGP neighbor route entries";
                            list bgp-neighbor-route-entry {
                              key "prefix";
                              description
                                "List of BGP neighbor route entries";
                              leaf prefix {
                                type string;
                                description
                                  "Neighbor routing table entry prefix";
                              }
    
                              leaf version {
                                type uint32;
                                description
                                  "Neighbor routing table version";
                              }
    
                              leaf available-paths {
                                type uint32;
                                description
                                  "Number of paths available for BGP prefix";
                              }
    
                              leaf advertised-to {
                                type string;
                                description
                                  "Whom the prefix is advertised to";
                              }
    
                              container bgp-neighbor-path-entries {
                                description
                                  "Prefix next hop details";
                                list bgp-neighbor-path-entry {
                                  key "nexthop";
                                  description
                                    "List of prefix next hop details";
                                  leaf nexthop {
                                    type string;
                                    description
                                      "Next hop for this path";
                                  }
    
                                  leaf metric {
                                    type uint32;
                                    description
                                      "Metric associated with the path";
                                  }
    
                                  leaf local-pref {
                                    type uint32;
                                    description
                                      "Local preference for this path";
                                  }
    
                                  leaf weight {
                                    type uint32;
                                    description
                                      "Path weight";
                                  }
    
                                  leaf as-path {
                                    type string;
                                    description
                                      "AS path";
                                  }
    
                                  leaf origin {
                                    type bgp-route-ios-xe-oper:bgp-origin-code;
                                    description
                                      "Path origin";
                                  }
    
                                  container path-status {
                                    description
                                      "Path status";
                                    leaf suppressed {
                                      type empty;
                                      description
                                        "Suppressed path";
                                    }
    
                                    leaf damped {
                                      type empty;
                                      description
                                        "Damped path";
                                    }
    
                                    leaf history {
                                      type empty;
                                      description
                                        "History path";
                                    }
    
                                    leaf valid {
                                      type empty;
                                      description
                                        "Valid path";
                                    }
    
                                    leaf sourced {
                                      type empty;
                                      description
                                        "Sourced path";
                                    }
    
                                    leaf bestpath {
                                      type empty;
                                      description
                                        "Best path";
                                    }
    
                                    leaf internal {
                                      type empty;
                                      description
                                        "Internal path";
                                    }
    
                                    leaf rib-fail {
                                      type empty;
                                      description
                                        "RIB-fail path";
                                    }
    
                                    leaf stale {
                                      type empty;
                                      description
                                        "Stale path";
                                    }
    
                                    leaf multipath {
                                      type empty;
                                      description
                                        "Multipath path";
                                    }
    
                                    leaf backup-path {
                                      type empty;
                                      description
                                        "Backup path";
                                    }
    
                                    leaf rt-filter {
                                      type empty;
                                      description
                                        "RT filter path";
                                    }
    
                                    leaf best-external {
                                      type empty;
                                      description
                                        "Best external path";
                                    }
    
                                    leaf additional-path {
                                      type empty;
                                      description
                                        "Additional path";
                                    }
    
                                    leaf rib-compressed {
                                      type empty;
                                      description
                                        "RIB compressed path";
                                    }
                                  }  // container path-status
    
                                  leaf rpki-status {
                                    type bgp-route-ios-xe-oper:bgp-rpki-status;
                                    description
                                      "RPKI path status";
                                  }
    
                                  leaf community {
                                    type string;
                                    description
                                      "Community label for the path";
                                  }
    
                                  leaf mpls-in {
                                    type string;
                                    description
                                      "MPLS label in for the path";
                                  }
    
                                  leaf mpls-out {
                                    type string;
                                    description
                                      "MPLS label out for the path";
                                  }
    
                                  leaf sr-profile-name {
                                    type string;
                                    description
                                      "SR profile name for the path";
                                  }
    
                                  leaf sr-binding-sid {
                                    type uint32;
                                    description
                                      "SR binding sid for the path";
                                  }
    
                                  leaf sr-label-indx {
                                    type uint32;
                                    description
                                      "SR label index for the path";
                                  }
    
                                  leaf as4-path {
                                    type string;
                                    description
                                      "path using 4-octet AS numbers";
                                  }
    
                                  leaf atomic-aggregate {
                                    type boolean;
                                    description
                                      "attribute indicating whether or not the prefix is an atomic aggregate";
                                  }
    
                                  leaf aggr-as-number {
                                    type uint32;
                                    description
                                      "AS number of autonomous system them performed the aggregation";
                                  }
    
                                  leaf aggr-as4-number {
                                    type uint32;
                                    description
                                      "AS4 number of autonomous system them performed the aggregation";
                                  }
    
                                  leaf aggr-address {
                                    type string;
                                    description
                                      "IP address of the router that performed the aggregation";
                                  }
    
                                  leaf originator-id {
                                    type string;
                                    description
                                      "the router ID of the originator of the route in the local AS";
                                  }
    
                                  leaf cluster-list {
                                    type string;
                                    description
                                      "the reflection path the route has passed";
                                  }
    
                                  leaf extended-community {
                                    type string;
                                    description
                                      "BGP extended community attribute";
                                  }
    
                                  leaf ext-aigp-metric {
                                    type uint64;
                                    description
                                      "the accumulated IGP metric for the path";
                                  }
    
                                  leaf path-id {
                                    type uint32;
                                    description
                                      "path identifier used to uniquely identify a route";
                                  }
    
                                  leaf path-origin {
                                    type bgp-route-ios-xe-oper:bgp-path-origin;
                                    description
                                      "Internal/External path";
                                  }
                                }  // list bgp-neighbor-path-entry
                              }  // container bgp-neighbor-path-entries
                            }  // list bgp-neighbor-route-entry
                          }  // container bgp-neighbor-route-entries
                        }  // list bgp-neighbor-route-filter
                      }  // container bgp-neighbor-route-filters
                    }  // list bgp-route-neighbor
                  }  // container bgp-route-neighbors
    
                  container bgp-peer-groups {
                    description
                      "BGP peer groups";
                    list bgp-peer-group {
                      key "name";
                      description
                        "List of BGP peer groups";
                      leaf name {
                        type string;
                        description
                          "BGP peer group name";
                      }
    
                      leaf description {
                        type string;
                        description
                          "Peer Group description string";
                      }
    
                      leaf remote-as {
                        type uint32;
                        description
                          "Peer Group Remote AS value";
                      }
    
                      leaf bgp-version {
                        type uint16;
                        description
                          "BGP version being used to communicate
    with the remote router";
                      }
    
                      leaf min-time {
                        type uint16;
                        description
                          "Peer Group minimum time";
                      }
    
                      leaf num-of-sessions {
                        type uint32;
                        description
                          "Number of Sessions for peer group";
                      }
    
                      leaf num-estab-sessions {
                        type uint32;
                        description
                          "Number of established sessions
    for peer group";
                      }
    
                      leaf num-sso-sessions {
                        type uint32;
                        description
                          "Number of SSO sessions for peer group";
                      }
    
                      leaf-list peer-members {
                        type string;
                        ordered-by user;
                        description
                          "BGP peer group members";
                      }
    
                      leaf fmt-grp-ix {
                        type uint16;
                        status obsolete;
                        description
                          "BGP peer group Formatted Group Index value (obsolete)";
                      }
    
                      leaf adv-ix {
                        type uint16;
                        status obsolete;
                        description
                          "BGP peer group Advertised Index value (obsolete)";
                      }
    
                      leaf aspath-in {
                        type uint32;
                        description
                          "BGP peer group AS Path filter in value";
                      }
    
                      leaf aspath-out {
                        type uint32;
                        description
                          "BGP peer group AS Path filter out value";
                      }
    
                      leaf routemap-in {
                        type string;
                        description
                          "BGP peer group Route Map in value";
                      }
    
                      leaf routemap-out {
                        type string;
                        description
                          "BGP peer group Route Map out value";
                      }
    
                      leaf updated-messages {
                        type uint64;
                        status obsolete;
                        description
                          "BGP peer group Updated Messages value (obsolete)";
                      }
    
                      leaf rep-count {
                        type uint32;
                        description
                          "BGP peer group Replicated Count value";
                      }
    
                      leaf slowpeer-detection-value {
                        type uint16;
                        description
                          "BGP peer group slow peer Threshold value";
                      }
    
                      leaf weight {
                        type uint16;
                        description
                          "BGP weight value";
                      }
    
                      leaf send-community {
                        type boolean;
                        description
                          "BGP Send Community status";
                      }
    
                      leaf extended-community {
                        type boolean;
                        description
                          "BGP Extended Community status";
                      }
    
                      leaf remove-private-as {
                        type boolean;
                        description
                          "BGP Remove Private AS status";
                      }
                    }  // list bgp-peer-group
                  }  // container bgp-peer-groups
                }  // list bgp-route-af
              }  // container bgp-route-afs
            }  // list bgp-route-vrf
          }  // container bgp-route-vrfs
    
          container bgp-route-rds {
            description "BGP RDs";
            list bgp-route-rd {
              key "rd-value";
              description "List of BGP RDs";
              leaf rd-value {
                type string;
                description "BGP rd value";
              }
    
              container bgp-rd-route-afs {
                description
                  "BGP rd address families";
                list bgp-rd-route-af {
                  key "afi-safi";
                  description
                    "List of BGP RD address families";
                  leaf afi-safi {
                    type bgp-common-ios-xe-oper:afi-safi;
                    description
                      "BGP address family";
                  }
    
                  container bgp-rd-route-filters {
                    description
                      "BGP RD route filters";
                    list bgp-rd-route-filter {
                      key "route-filter";
                      description
                        "List of BGP RD route filters";
                      leaf route-filter {
                        type bgp-route-ios-xe-oper:bgp-route-filters;
                        description
                          "BGP RD route filter";
                      }
    
                      container bgp-rd-route-entries {
                        description
                          "BGP RD route entries";
                        list bgp-rd-route-entry {
                          key "prefix";
                          description
                            "List of BGP RD route entries";
                          leaf prefix {
                            type string;
                            description
                              "RD Routing table entry prefix";
                          }
    
                          leaf version {
                            type uint32;
                            description
                              "RD Routing table version";
                          }
    
                          leaf available-paths {
                            type uint32;
                            description
                              "Number of  paths available for BGP prefix";
                          }
    
                          leaf advertised-to {
                            type string;
                            description
                              "Whom the prefix is advertised to";
                          }
    
                          container bgp-rd-path-entries {
                            description
                              "Prefix next hop details";
                            list bgp-rd-path-entry {
                              key "nexthop";
                              description
                                "List of prefix next hop details";
                              leaf nexthop {
                                type string;
                                description
                                  "Next hop for this path";
                              }
    
                              leaf metric {
                                type uint32;
                                description
                                  "Metric associated with the path";
                              }
    
                              leaf local-pref {
                                type uint32;
                                description
                                  "Local preference for this path";
                              }
    
                              leaf weight {
                                type uint32;
                                description
                                  "Path weight";
                              }
    
                              leaf as-path {
                                type string;
                                description
                                  "AS path";
                              }
    
                              leaf origin {
                                type bgp-route-ios-xe-oper:bgp-origin-code;
                                description
                                  "Path origin";
                              }
    
                              container path-status {
                                description
                                  "Path status";
                                leaf suppressed {
                                  type empty;
                                  description
                                    "Suppressed path";
                                }
    
                                leaf damped {
                                  type empty;
                                  description
                                    "Damped path";
                                }
    
                                leaf history {
                                  type empty;
                                  description
                                    "History path";
                                }
    
                                leaf valid {
                                  type empty;
                                  description
                                    "Valid path";
                                }
    
                                leaf sourced {
                                  type empty;
                                  description
                                    "Sourced path";
                                }
    
                                leaf bestpath {
                                  type empty;
                                  description
                                    "Best path";
                                }
    
                                leaf internal {
                                  type empty;
                                  description
                                    "Internal path";
                                }
    
                                leaf rib-fail {
                                  type empty;
                                  description
                                    "RIB-fail path";
                                }
    
                                leaf stale {
                                  type empty;
                                  description
                                    "Stale path";
                                }
    
                                leaf multipath {
                                  type empty;
                                  description
                                    "Multipath path";
                                }
    
                                leaf backup-path {
                                  type empty;
                                  description
                                    "Backup path";
                                }
    
                                leaf rt-filter {
                                  type empty;
                                  description
                                    "RT filter path";
                                }
    
                                leaf best-external {
                                  type empty;
                                  description
                                    "Best external path";
                                }
    
                                leaf additional-path {
                                  type empty;
                                  description
                                    "Additional path";
                                }
    
                                leaf rib-compressed {
                                  type empty;
                                  description
                                    "RIB compressed path";
                                }
                              }  // container path-status
    
                              leaf rpki-status {
                                type bgp-route-ios-xe-oper:bgp-rpki-status;
                                description
                                  "RPKI path status";
                              }
    
                              leaf community {
                                type string;
                                description
                                  "Community label for the path";
                              }
    
                              leaf mpls-in {
                                type string;
                                description
                                  "MPLS label in for the path";
                              }
    
                              leaf mpls-out {
                                type string;
                                description
                                  "MPLS label out for the path";
                              }
    
                              leaf sr-profile-name {
                                type string;
                                description
                                  "SR profile name for the path";
                              }
    
                              leaf sr-binding-sid {
                                type uint32;
                                description
                                  "SR binding sid for the path";
                              }
    
                              leaf sr-label-indx {
                                type uint32;
                                description
                                  "SR label index for the path";
                              }
    
                              leaf as4-path {
                                type string;
                                description
                                  "path using 4-octet AS numbers";
                              }
    
                              leaf atomic-aggregate {
                                type boolean;
                                description
                                  "attribute indicating whether or not the prefix is an atomic aggregate";
                              }
    
                              leaf aggr-as-number {
                                type uint32;
                                description
                                  "AS number of autonomous system them performed the aggregation";
                              }
    
                              leaf aggr-as4-number {
                                type uint32;
                                description
                                  "AS4 number of autonomous system them performed the aggregation";
                              }
    
                              leaf aggr-address {
                                type string;
                                description
                                  "IP address of the router that performed the aggregation";
                              }
    
                              leaf originator-id {
                                type string;
                                description
                                  "the router ID of the originator of the route in the local AS";
                              }
    
                              leaf cluster-list {
                                type string;
                                description
                                  "the reflection path the route has passed";
                              }
    
                              leaf extended-community {
                                type string;
                                description
                                  "BGP extended community attribute";
                              }
    
                              leaf ext-aigp-metric {
                                type uint64;
                                description
                                  "the accumulated IGP metric for the path";
                              }
    
                              leaf path-id {
                                type uint32;
                                description
                                  "path identifier used to uniquely identify a route";
                              }
    
                              leaf path-origin {
                                type bgp-route-ios-xe-oper:bgp-path-origin;
                                description
                                  "Internal/External path";
                              }
                            }  // list bgp-rd-path-entry
                          }  // container bgp-rd-path-entries
                        }  // list bgp-rd-route-entry
                      }  // container bgp-rd-route-entries
                    }  // list bgp-rd-route-filter
                  }  // container bgp-rd-route-filters
    
                  container bgp-rd-route-neighbors {
                    description
                      "BGP RD route neighbors";
                    list bgp-rd-route-neighbor {
                      key "neighbor-id";
                      description
                        "List of BGP RD route neighbors";
                      leaf neighbor-id {
                        type string;
                        description
                          "BGP RD neighbor ID";
                      }
    
                      container bgp-rd-neighbor-route-filters {
                        description
                          "BGP RD neighbor route filters";
                        list bgp-rd-neighbor-route-filter {
                          key "neighbor-filter";
                          description
                            "List of BGP RD neighbor route filters";
                          leaf neighbor-filter {
                            type bgp-route-ios-xe-oper:bgp-neighbor-route-filters;
                            description
                              "BGP RD neighbor route filter";
                          }
    
                          container bgp-rd-neighbor-route-entries {
                            description
                              "BGP RD neighbor route entries";
                            list bgp-rd-neighbor-route-entry {
                              key "prefix";
                              description
                                "List of BGP RD neighbor route entries";
                              leaf prefix {
                                type string;
                                description
                                  "RD neighbor routing table entry prefix";
                              }
    
                              leaf version {
                                type uint32;
                                description
                                  "RD neighbor routing table version";
                              }
    
                              leaf available-paths {
                                type uint32;
                                description
                                  "Number of  paths available for BGP prefix";
                              }
    
                              leaf advertised-to {
                                type string;
                                description
                                  "Whom the prefix is advertised to";
                              }
    
                              container bgp-rd-neighbor-path-entries {
                                description
                                  "Prefix next hop details";
                                list bgp-rd-neighbor-path-entry {
                                  key "nexthop";
                                  description
                                    "List of prefix next hop details";
                                  leaf nexthop {
                                    type string;
                                    description
                                      "Next hop for this path";
                                  }
    
                                  leaf metric {
                                    type uint32;
                                    description
                                      "Metric associated with the path";
                                  }
    
                                  leaf local-pref {
                                    type uint32;
                                    description
                                      "Local preference for this path";
                                  }
    
                                  leaf weight {
                                    type uint32;
                                    description
                                      "Path weight";
                                  }
    
                                  leaf as-path {
                                    type string;
                                    description
                                      "AS path";
                                  }
    
                                  leaf origin {
                                    type bgp-route-ios-xe-oper:bgp-origin-code;
                                    description
                                      "Path origin";
                                  }
    
                                  container path-status {
                                    description
                                      "Path status";
                                    leaf suppressed {
                                      type empty;
                                      description
                                        "Suppressed path";
                                    }
    
                                    leaf damped {
                                      type empty;
                                      description
                                        "Damped path";
                                    }
    
                                    leaf history {
                                      type empty;
                                      description
                                        "History path";
                                    }
    
                                    leaf valid {
                                      type empty;
                                      description
                                        "Valid path";
                                    }
    
                                    leaf sourced {
                                      type empty;
                                      description
                                        "Sourced path";
                                    }
    
                                    leaf bestpath {
                                      type empty;
                                      description
                                        "Best path";
                                    }
    
                                    leaf internal {
                                      type empty;
                                      description
                                        "Internal path";
                                    }
    
                                    leaf rib-fail {
                                      type empty;
                                      description
                                        "RIB-fail path";
                                    }
    
                                    leaf stale {
                                      type empty;
                                      description
                                        "Stale path";
                                    }
    
                                    leaf multipath {
                                      type empty;
                                      description
                                        "Multipath path";
                                    }
    
                                    leaf backup-path {
                                      type empty;
                                      description
                                        "Backup path";
                                    }
    
                                    leaf rt-filter {
                                      type empty;
                                      description
                                        "RT filter path";
                                    }
    
                                    leaf best-external {
                                      type empty;
                                      description
                                        "Best external path";
                                    }
    
                                    leaf additional-path {
                                      type empty;
                                      description
                                        "Additional path";
                                    }
    
                                    leaf rib-compressed {
                                      type empty;
                                      description
                                        "RIB compressed path";
                                    }
                                  }  // container path-status
    
                                  leaf rpki-status {
                                    type bgp-route-ios-xe-oper:bgp-rpki-status;
                                    description
                                      "RPKI path status";
                                  }
    
                                  leaf community {
                                    type string;
                                    description
                                      "Community label for the path";
                                  }
    
                                  leaf mpls-in {
                                    type string;
                                    description
                                      "MPLS label in for the path";
                                  }
    
                                  leaf mpls-out {
                                    type string;
                                    description
                                      "MPLS label out for the path";
                                  }
    
                                  leaf sr-profile-name {
                                    type string;
                                    description
                                      "SR profile name for the path";
                                  }
    
                                  leaf sr-binding-sid {
                                    type uint32;
                                    description
                                      "SR binding sid for the path";
                                  }
    
                                  leaf sr-label-indx {
                                    type uint32;
                                    description
                                      "SR label index for the path";
                                  }
    
                                  leaf as4-path {
                                    type string;
                                    description
                                      "path using 4-octet AS numbers";
                                  }
    
                                  leaf atomic-aggregate {
                                    type boolean;
                                    description
                                      "attribute indicating whether or not the prefix is an atomic aggregate";
                                  }
    
                                  leaf aggr-as-number {
                                    type uint32;
                                    description
                                      "AS number of autonomous system them performed the aggregation";
                                  }
    
                                  leaf aggr-as4-number {
                                    type uint32;
                                    description
                                      "AS4 number of autonomous system them performed the aggregation";
                                  }
    
                                  leaf aggr-address {
                                    type string;
                                    description
                                      "IP address of the router that performed the aggregation";
                                  }
    
                                  leaf originator-id {
                                    type string;
                                    description
                                      "the router ID of the originator of the route in the local AS";
                                  }
    
                                  leaf cluster-list {
                                    type string;
                                    description
                                      "the reflection path the route has passed";
                                  }
    
                                  leaf extended-community {
                                    type string;
                                    description
                                      "BGP extended community attribute";
                                  }
    
                                  leaf ext-aigp-metric {
                                    type uint64;
                                    description
                                      "the accumulated IGP metric for the path";
                                  }
    
                                  leaf path-id {
                                    type uint32;
                                    description
                                      "path identifier used to uniquely identify a route";
                                  }
    
                                  leaf path-origin {
                                    type bgp-route-ios-xe-oper:bgp-path-origin;
                                    description
                                      "Internal/External path";
                                  }
                                }  // list bgp-rd-neighbor-path-entry
                              }  // container bgp-rd-neighbor-path-entries
                            }  // list bgp-rd-neighbor-route-entry
                          }  // container bgp-rd-neighbor-route-entries
                        }  // list bgp-rd-neighbor-route-filter
                      }  // container bgp-rd-neighbor-route-filters
                    }  // list bgp-rd-route-neighbor
                  }  // container bgp-rd-route-neighbors
                }  // list bgp-rd-route-af
              }  // container bgp-rd-route-afs
            }  // list bgp-route-rd
          }  // container bgp-route-rds
        }  // container bgp-state-data
      }  // module Cisco-IOS-XE-bgp-oper
    

© 2023 YumaWorks, Inc. All rights reserved.