# BGP RIB

# URL

frinx-openconfig-rib-bgp:bgp-rib

# OPENCONFIG YANG

YANG models

{
    "bgp-rib": {
        "afi-safis": {
            "afi-safi": [
                {
                    "afi-safi-name": "frinx-openconfig-bgp-types:IPV4_UNICAST",
                    "ipv4-unicast": {
                        "loc-rib": {
                            "routes": {
                                "route": [
                                    {
                                        "prefix": "<prefix1>",
                                        "origin": "i",
                                        "path-id": "0",
                                        "state": {
                                            "prefix": "<prefix1>",
                                            "valid-route": true
                                        }
                                    },
                                    {
                                        "prefix": "<prefix2>",
                                        "origin": "i",
                                        "path-id": "0",
                                        "state": {
                                            "prefix": "<prefix2>",
                                            "valid-route": true
                                        }
                                    }
                                ]
                            }
                        }
                    }
                }
            ]
        }
    }
}

# OS Commands

# Cisco IOS Classic (15.2(4)S5) / XE (15.3(3)S2)

# CLI


R121#sh ip bgp
BGP table version is 3, local router ID is 9.9.9.9
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  <prefix1>      0.0.0.0                   0         32768  i
 *>  <prefix2>      192.168.56.122           0             0  65777 i

R121#sh ip bgp | section <prefix1>
 *>  <prefix1>      0.0.0.0                   0         32768  i

'*' (valid route) translates to "valid-route" : true
'i' (internal) translates to "origin": "i"

# Unit

Unit version range: 3.1.1.rc1-frinx

Link to github : ios-unit