Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET http://172.18.0.4:8888/restconf/data/bgp-rib:bgp-rib/rib=example-bgp-rib
- {
- "rib": [
- {
- "id": "example-bgp-rib",
- "peer": [
- {
- "peer-id": "bgp://192.168.2.1",
- "peer-role": "rr-client",
- "effective-rib-in": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.2.0/24",
- "prefix": "192.168.2.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.3"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- }
- ]
- },
- "attributes": {
- "uptodate": true
- }
- }
- ]
- },
- "adj-rib-in": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.2.0/24",
- "prefix": "192.168.2.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.3"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- }
- ]
- },
- "attributes": {
- "uptodate": true
- }
- }
- ]
- },
- "supported-tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "send-receive": "receive"
- }
- ],
- "adj-rib-out": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.1.0/24",
- "prefix": "192.168.1.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- },
- {
- "path-id": 0,
- "route-key": "192.168.3.0/24",
- "prefix": "192.168.3.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {
- "segments": [
- {
- "as-sequence": [
- 60
- ]
- }
- ]
- }
- }
- }
- ]
- },
- "attributes": {}
- }
- ]
- }
- },
- {
- "peer-id": "bgp://172.19.0.4",
- "peer-role": "rr-client",
- "effective-rib-in": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.1.0/24",
- "prefix": "192.168.1.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- },
- {
- "path-id": 0,
- "route-key": "192.168.3.0/24",
- "prefix": "192.168.3.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {
- "segments": [
- {
- "as-sequence": [
- 60
- ]
- }
- ]
- }
- }
- }
- ]
- },
- "attributes": {
- "uptodate": true
- }
- }
- ]
- },
- "adj-rib-in": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.1.0/24",
- "prefix": "192.168.1.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- },
- {
- "path-id": 0,
- "route-key": "192.168.3.0/24",
- "prefix": "192.168.3.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {
- "segments": [
- {
- "as-sequence": [
- 60
- ]
- }
- ]
- }
- }
- }
- ]
- },
- "attributes": {
- "uptodate": true
- }
- }
- ]
- },
- "supported-tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "send-receive": "receive"
- }
- ],
- "adj-rib-out": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.2.0/24",
- "prefix": "192.168.2.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.3"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- }
- ]
- },
- "attributes": {}
- }
- ]
- }
- }
- ],
- "loc-rib": {
- "tables": [
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-flowspec:flowspec-l3vpn-subsequent-address-family",
- "bgp-flowspec:flowspec-l3vpn-ipv4-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv6-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-flowspec:flowspec-subsequent-address-family",
- "bgp-flowspec:flowspec-ipv6-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:unicast-subsequent-address-family",
- "bgp-inet:ipv4-routes": {
- "ipv4-route": [
- {
- "path-id": 0,
- "route-key": "192.168.2.0/24",
- "prefix": "192.168.2.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.3"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- },
- {
- "path-id": 0,
- "route-key": "192.168.1.0/24",
- "prefix": "192.168.1.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {}
- }
- },
- {
- "path-id": 0,
- "route-key": "192.168.3.0/24",
- "prefix": "192.168.3.0/24",
- "attributes": {
- "origin": {
- "value": "igp"
- },
- "ipv4-next-hop": {
- "global": "172.18.0.2"
- },
- "local-pref": {
- "pref": 100
- },
- "as-path": {
- "segments": [
- {
- "as-sequence": [
- 60
- ]
- }
- ]
- }
- }
- }
- ]
- },
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-mvpn:mcast-vpn-subsequent-address-family",
- "bgp-mvpn-ipv6:mvpn-routes-ipv6": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-route-target-constrain:route-target-constrain-subsequent-address-family",
- "bgp-route-target-constrain:route-target-constrain-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-flowspec:flowspec-subsequent-address-family",
- "bgp-flowspec:flowspec-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-mvpn:mcast-vpn-subsequent-address-family",
- "bgp-mvpn-ipv4:mvpn-routes-ipv4": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "odl-bgp-evpn:l2vpn-address-family",
- "safi": "odl-bgp-evpn:evpn-subsequent-address-family",
- "odl-bgp-evpn:evpn-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-types:mpls-labeled-vpn-subsequent-address-family",
- "bgp-vpn-ipv6:vpn-ipv6-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family",
- "bgp-labeled-unicast:labeled-unicast-ipv6-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-types:mpls-labeled-vpn-subsequent-address-family",
- "bgp-vpn-ipv4:vpn-ipv4-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family",
- "bgp-labeled-unicast:labeled-unicast-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-linkstate:linkstate-address-family",
- "safi": "bgp-linkstate:linkstate-subsequent-address-family",
- "bgp-linkstate:linkstate-routes": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv4-address-family",
- "safi": "bgp-l3vpn-mcast:mcast-mpls-labeled-vpn-subsequent-address-family",
- "bgp-l3vpn-mcast:l3vpn-mcast-routes-ipv4": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-l3vpn-mcast:mcast-mpls-labeled-vpn-subsequent-address-family",
- "bgp-l3vpn-mcast:l3vpn-mcast-routes-ipv6": {},
- "attributes": {
- "uptodate": true
- }
- },
- {
- "afi": "bgp-types:ipv6-address-family",
- "safi": "bgp-flowspec:flowspec-l3vpn-subsequent-address-family",
- "bgp-flowspec:flowspec-l3vpn-ipv6-routes": {},
- "attributes": {
- "uptodate": true
- }
- }
- ]
- }
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement