Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Mapping OpenConfig BGP RIB Commands to Junos Operation

 

Table 1: Sensor for BGP RIB routing table

resource path

Description

The BGP RIB consists of several tables per address family, consisting of loc-rib and the per-neighbor tables listed below. The loc-rib table may contain multiple routes for a given prefix, with an attribute to indicate which was selected as the best path. You can use the following resource paths:

  • /bgp-rib

  • /bgp-rib/afi-safis/afi-safi/ipv4-unicast/loc-rib

  • /bgp-rib/afi-safis/afi-safi/ipv6-unicast/loc-rib

  • bgp-rib/afi-safis/afi-safi/ipv4-unicast/neighbors/neighbor/ adj-rib-in-pre

  • bgp-rib/afi-safis/afi-safi/ipv6-unicast/neighbors/neighbor/ adj-rib-in-pre

  • bgp-rib/afi-safis/afi-safi/ipv4-unicast/neighbors/neighbor/ adj-rib-out-post

  • bgp-rib/afi-safis/afi-safi/ipv6-unicast/neighbors/neighbor/ adj-rib-out-post

loc-rib: The main BGP routing table for the local routing instance, containing best-path selections for each prefix.

adj-rib-in-pre: Contains the NLRI updates received from the neighbor before any local input policy filters have been applied.

adj-rib-in-post: Contains the routes received from the neighbor after local input policy filters have been applied.

You can also append the following to the /bgp-rib/afi-safis/afi-safi/ipv4-unicast/loc-rib and /bgp-rib/afi-safis/afi-safi/ipv6-unicast/loc-rib paths:

  • /num-routes

  • /routes/route/prefix

  • /routes/route/attributes

  • /routes/route/attributes/origin

  • /routes/route/attributes/as-path

  • /routes/route/attributes/next-hop

  • /routes/route/attributes/med

  • /routes/route/attributes/local-pref

  • /routes/route/attributes/atomic-aggr

  • /routes/route/attributes/aggregator/as

  • /routes/route/attributes/aggregator/address

  • /routes/route/ext-attributes/

  • /routes/route/ext-attributes/community

  • /routes/route/ext-attributes/originator-id

  • /routes/route/ext-attributes/cluster-list

  • /routes/route/ext-attributes/extended-community

  • /routes/route/ext-attributes/aigp

  • /routes/route/ext-attributes/path-id

  • /routes/route/ext-attributes/unknown-attribute

  • /routes/route/ext-attributes/unknown-attribute/attr-type

  • /routes/route/ext-attributes/unknown-attribute/attr-len

  • /routes/route/ext-attributes/unknown-attribute/attr-value

  • /routes/route/last-modified-date

  • /routes/route/last-update-received

  • /routes/route/valid-route

  • /routes/route/invalid-reason

  • /routes/route/best-path