Advertisement
PANTHEONtech

[light.io] Verify advertised routes in bgp datastore

Apr 3rd, 2019
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GET http://172.18.0.4:8888/restconf/data/bgp-rib:bgp-rib/rib=example-bgp-rib
  2.  
  3. {
  4.     "rib": [
  5.         {
  6.             "id": "example-bgp-rib",
  7.             "peer": [
  8.                 {
  9.                     "peer-id": "bgp://192.168.2.1",
  10.                     "peer-role": "rr-client",
  11.                     "effective-rib-in": {
  12.                         "tables": [
  13.                             {
  14.                                 "afi": "bgp-types:ipv4-address-family",
  15.                                 "safi": "bgp-types:unicast-subsequent-address-family",
  16.                                 "bgp-inet:ipv4-routes": {
  17.                                     "ipv4-route": [
  18.                                         {
  19.                                             "path-id": 0,
  20.                                             "route-key": "192.168.2.0/24",
  21.                                             "prefix": "192.168.2.0/24",
  22.                                             "attributes": {
  23.                                                 "origin": {
  24.                                                     "value": "igp"
  25.                                                 },
  26.                                                 "ipv4-next-hop": {
  27.                                                     "global": "172.18.0.3"
  28.                                                 },
  29.                                                 "local-pref": {
  30.                                                     "pref": 100
  31.                                                 },
  32.                                                 "as-path": {}
  33.                                             }
  34.                                         }
  35.                                     ]
  36.                                 },
  37.                                 "attributes": {
  38.                                     "uptodate": true
  39.                                 }
  40.                             }
  41.                         ]
  42.                     },
  43.                     "adj-rib-in": {
  44.                         "tables": [
  45.                             {
  46.                                 "afi": "bgp-types:ipv4-address-family",
  47.                                 "safi": "bgp-types:unicast-subsequent-address-family",
  48.                                 "bgp-inet:ipv4-routes": {
  49.                                     "ipv4-route": [
  50.                                         {
  51.                                             "path-id": 0,
  52.                                             "route-key": "192.168.2.0/24",
  53.                                             "prefix": "192.168.2.0/24",
  54.                                             "attributes": {
  55.                                                 "origin": {
  56.                                                     "value": "igp"
  57.                                                 },
  58.                                                 "ipv4-next-hop": {
  59.                                                     "global": "172.18.0.3"
  60.                                                 },
  61.                                                 "local-pref": {
  62.                                                     "pref": 100
  63.                                                 },
  64.                                                 "as-path": {}
  65.                                             }
  66.                                         }
  67.                                     ]
  68.                                 },
  69.                                 "attributes": {
  70.                                     "uptodate": true
  71.                                 }
  72.                             }
  73.                         ]
  74.                     },
  75.                     "supported-tables": [
  76.                         {
  77.                             "afi": "bgp-types:ipv4-address-family",
  78.                             "safi": "bgp-types:unicast-subsequent-address-family",
  79.                             "send-receive": "receive"
  80.                         }
  81.                     ],
  82.                     "adj-rib-out": {
  83.                         "tables": [
  84.                             {
  85.                                 "afi": "bgp-types:ipv4-address-family",
  86.                                 "safi": "bgp-types:unicast-subsequent-address-family",
  87.                                 "bgp-inet:ipv4-routes": {
  88.                                     "ipv4-route": [
  89.                                         {
  90.                                             "path-id": 0,
  91.                                             "route-key": "192.168.1.0/24",
  92.                                             "prefix": "192.168.1.0/24",
  93.                                             "attributes": {
  94.                                                 "origin": {
  95.                                                     "value": "igp"
  96.                                                 },
  97.                                                 "ipv4-next-hop": {
  98.                                                     "global": "172.18.0.2"
  99.                                                 },
  100.                                                 "local-pref": {
  101.                                                     "pref": 100
  102.                                                 },
  103.                                                 "as-path": {}
  104.                                             }
  105.                                         },
  106.                                         {
  107.                                             "path-id": 0,
  108.                                             "route-key": "192.168.3.0/24",
  109.                                             "prefix": "192.168.3.0/24",
  110.                                             "attributes": {
  111.                                                 "origin": {
  112.                                                     "value": "igp"
  113.                                                 },
  114.                                                 "ipv4-next-hop": {
  115.                                                     "global": "172.18.0.2"
  116.                                                 },
  117.                                                 "local-pref": {
  118.                                                     "pref": 100
  119.                                                 },
  120.                                                 "as-path": {
  121.                                                     "segments": [
  122.                                                         {
  123.                                                             "as-sequence": [
  124.                                                                 60
  125.                                                             ]
  126.                                                         }
  127.                                                     ]
  128.                                                 }
  129.                                             }
  130.                                         }
  131.                                     ]
  132.                                 },
  133.                                 "attributes": {}
  134.                             }
  135.                         ]
  136.                     }
  137.                 },
  138.                 {
  139.                     "peer-id": "bgp://172.19.0.4",
  140.                     "peer-role": "rr-client",
  141.                     "effective-rib-in": {
  142.                         "tables": [
  143.                             {
  144.                                 "afi": "bgp-types:ipv4-address-family",
  145.                                 "safi": "bgp-types:unicast-subsequent-address-family",
  146.                                 "bgp-inet:ipv4-routes": {
  147.                                     "ipv4-route": [
  148.                                         {
  149.                                             "path-id": 0,
  150.                                             "route-key": "192.168.1.0/24",
  151.                                             "prefix": "192.168.1.0/24",
  152.                                             "attributes": {
  153.                                                 "origin": {
  154.                                                     "value": "igp"
  155.                                                 },
  156.                                                 "ipv4-next-hop": {
  157.                                                     "global": "172.18.0.2"
  158.                                                 },
  159.                                                 "local-pref": {
  160.                                                     "pref": 100
  161.                                                 },
  162.                                                 "as-path": {}
  163.                                             }
  164.                                         },
  165.                                         {
  166.                                             "path-id": 0,
  167.                                             "route-key": "192.168.3.0/24",
  168.                                             "prefix": "192.168.3.0/24",
  169.                                             "attributes": {
  170.                                                 "origin": {
  171.                                                     "value": "igp"
  172.                                                 },
  173.                                                 "ipv4-next-hop": {
  174.                                                     "global": "172.18.0.2"
  175.                                                 },
  176.                                                 "local-pref": {
  177.                                                     "pref": 100
  178.                                                 },
  179.                                                 "as-path": {
  180.                                                     "segments": [
  181.                                                         {
  182.                                                             "as-sequence": [
  183.                                                                 60
  184.                                                             ]
  185.                                                         }
  186.                                                     ]
  187.                                                 }
  188.                                             }
  189.                                         }
  190.                                     ]
  191.                                 },
  192.                                 "attributes": {
  193.                                     "uptodate": true
  194.                                 }
  195.                             }
  196.                         ]
  197.                     },
  198.                     "adj-rib-in": {
  199.                         "tables": [
  200.                             {
  201.                                 "afi": "bgp-types:ipv4-address-family",
  202.                                 "safi": "bgp-types:unicast-subsequent-address-family",
  203.                                 "bgp-inet:ipv4-routes": {
  204.                                     "ipv4-route": [
  205.                                         {
  206.                                             "path-id": 0,
  207.                                             "route-key": "192.168.1.0/24",
  208.                                             "prefix": "192.168.1.0/24",
  209.                                             "attributes": {
  210.                                                 "origin": {
  211.                                                     "value": "igp"
  212.                                                 },
  213.                                                 "ipv4-next-hop": {
  214.                                                     "global": "172.18.0.2"
  215.                                                 },
  216.                                                 "local-pref": {
  217.                                                     "pref": 100
  218.                                                 },
  219.                                                 "as-path": {}
  220.                                             }
  221.                                         },
  222.                                         {
  223.                                             "path-id": 0,
  224.                                             "route-key": "192.168.3.0/24",
  225.                                             "prefix": "192.168.3.0/24",
  226.                                             "attributes": {
  227.                                                 "origin": {
  228.                                                     "value": "igp"
  229.                                                 },
  230.                                                 "ipv4-next-hop": {
  231.                                                     "global": "172.18.0.2"
  232.                                                 },
  233.                                                 "local-pref": {
  234.                                                     "pref": 100
  235.                                                 },
  236.                                                 "as-path": {
  237.                                                     "segments": [
  238.                                                         {
  239.                                                             "as-sequence": [
  240.                                                                 60
  241.                                                             ]
  242.                                                         }
  243.                                                     ]
  244.                                                 }
  245.                                             }
  246.                                         }
  247.                                     ]
  248.                                 },
  249.                                 "attributes": {
  250.                                     "uptodate": true
  251.                                 }
  252.                             }
  253.                         ]
  254.                     },
  255.                     "supported-tables": [
  256.                         {
  257.                             "afi": "bgp-types:ipv4-address-family",
  258.                             "safi": "bgp-types:unicast-subsequent-address-family",
  259.                             "send-receive": "receive"
  260.                         }
  261.                     ],
  262.                     "adj-rib-out": {
  263.                         "tables": [
  264.                             {
  265.                                 "afi": "bgp-types:ipv4-address-family",
  266.                                 "safi": "bgp-types:unicast-subsequent-address-family",
  267.                                 "bgp-inet:ipv4-routes": {
  268.                                     "ipv4-route": [
  269.                                         {
  270.                                             "path-id": 0,
  271.                                             "route-key": "192.168.2.0/24",
  272.                                             "prefix": "192.168.2.0/24",
  273.                                             "attributes": {
  274.                                                 "origin": {
  275.                                                     "value": "igp"
  276.                                                 },
  277.                                                 "ipv4-next-hop": {
  278.                                                     "global": "172.18.0.3"
  279.                                                 },
  280.                                                 "local-pref": {
  281.                                                     "pref": 100
  282.                                                 },
  283.                                                 "as-path": {}
  284.                                             }
  285.                                         }
  286.                                     ]
  287.                                 },
  288.                                 "attributes": {}
  289.                             }
  290.                         ]
  291.                     }
  292.                 }
  293.             ],
  294.             "loc-rib": {
  295.                 "tables": [
  296.                     {
  297.                         "afi": "bgp-types:ipv4-address-family",
  298.                         "safi": "bgp-flowspec:flowspec-l3vpn-subsequent-address-family",
  299.                         "bgp-flowspec:flowspec-l3vpn-ipv4-routes": {},
  300.                         "attributes": {
  301.                             "uptodate": true
  302.                         }
  303.                     },
  304.                     {
  305.                         "afi": "bgp-types:ipv6-address-family",
  306.                         "safi": "bgp-types:unicast-subsequent-address-family",
  307.                         "bgp-inet:ipv6-routes": {},
  308.                         "attributes": {
  309.                             "uptodate": true
  310.                         }
  311.                     },
  312.                     {
  313.                         "afi": "bgp-types:ipv6-address-family",
  314.                         "safi": "bgp-flowspec:flowspec-subsequent-address-family",
  315.                         "bgp-flowspec:flowspec-ipv6-routes": {},
  316.                         "attributes": {
  317.                             "uptodate": true
  318.                         }
  319.                     },
  320.                     {
  321.                         "afi": "bgp-types:ipv4-address-family",
  322.                         "safi": "bgp-types:unicast-subsequent-address-family",
  323.                         "bgp-inet:ipv4-routes": {
  324.                             "ipv4-route": [
  325.                                 {
  326.                                     "path-id": 0,
  327.                                     "route-key": "192.168.2.0/24",
  328.                                     "prefix": "192.168.2.0/24",
  329.                                     "attributes": {
  330.                                         "origin": {
  331.                                             "value": "igp"
  332.                                         },
  333.                                         "ipv4-next-hop": {
  334.                                             "global": "172.18.0.3"
  335.                                         },
  336.                                         "local-pref": {
  337.                                             "pref": 100
  338.                                         },
  339.                                         "as-path": {}
  340.                                     }
  341.                                 },
  342.                                 {
  343.                                     "path-id": 0,
  344.                                     "route-key": "192.168.1.0/24",
  345.                                     "prefix": "192.168.1.0/24",
  346.                                     "attributes": {
  347.                                         "origin": {
  348.                                             "value": "igp"
  349.                                         },
  350.                                         "ipv4-next-hop": {
  351.                                             "global": "172.18.0.2"
  352.                                         },
  353.                                         "local-pref": {
  354.                                             "pref": 100
  355.                                         },
  356.                                         "as-path": {}
  357.                                     }
  358.                                 },
  359.                                 {
  360.                                     "path-id": 0,
  361.                                     "route-key": "192.168.3.0/24",
  362.                                     "prefix": "192.168.3.0/24",
  363.                                     "attributes": {
  364.                                         "origin": {
  365.                                             "value": "igp"
  366.                                         },
  367.                                         "ipv4-next-hop": {
  368.                                             "global": "172.18.0.2"
  369.                                         },
  370.                                         "local-pref": {
  371.                                             "pref": 100
  372.                                         },
  373.                                         "as-path": {
  374.                                             "segments": [
  375.                                                 {
  376.                                                     "as-sequence": [
  377.                                                         60
  378.                                                     ]
  379.                                                 }
  380.                                             ]
  381.                                         }
  382.                                     }
  383.                                 }
  384.                             ]
  385.                         },
  386.                         "attributes": {
  387.                             "uptodate": true
  388.                         }
  389.                     },
  390.                     {
  391.                         "afi": "bgp-types:ipv6-address-family",
  392.                         "safi": "bgp-mvpn:mcast-vpn-subsequent-address-family",
  393.                         "bgp-mvpn-ipv6:mvpn-routes-ipv6": {},
  394.                         "attributes": {
  395.                             "uptodate": true
  396.                         }
  397.                     },
  398.                     {
  399.                         "afi": "bgp-types:ipv4-address-family",
  400.                         "safi": "bgp-route-target-constrain:route-target-constrain-subsequent-address-family",
  401.                         "bgp-route-target-constrain:route-target-constrain-routes": {},
  402.                         "attributes": {
  403.                             "uptodate": true
  404.                         }
  405.                     },
  406.                     {
  407.                         "afi": "bgp-types:ipv4-address-family",
  408.                         "safi": "bgp-flowspec:flowspec-subsequent-address-family",
  409.                         "bgp-flowspec:flowspec-routes": {},
  410.                         "attributes": {
  411.                             "uptodate": true
  412.                         }
  413.                     },
  414.                     {
  415.                         "afi": "bgp-types:ipv4-address-family",
  416.                         "safi": "bgp-mvpn:mcast-vpn-subsequent-address-family",
  417.                         "bgp-mvpn-ipv4:mvpn-routes-ipv4": {},
  418.                         "attributes": {
  419.                             "uptodate": true
  420.                         }
  421.                     },
  422.                     {
  423.                         "afi": "odl-bgp-evpn:l2vpn-address-family",
  424.                         "safi": "odl-bgp-evpn:evpn-subsequent-address-family",
  425.                         "odl-bgp-evpn:evpn-routes": {},
  426.                         "attributes": {
  427.                             "uptodate": true
  428.                         }
  429.                     },
  430.                     {
  431.                         "afi": "bgp-types:ipv6-address-family",
  432.                         "safi": "bgp-types:mpls-labeled-vpn-subsequent-address-family",
  433.                         "bgp-vpn-ipv6:vpn-ipv6-routes": {},
  434.                         "attributes": {
  435.                             "uptodate": true
  436.                         }
  437.                     },
  438.                     {
  439.                         "afi": "bgp-types:ipv6-address-family",
  440.                         "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family",
  441.                         "bgp-labeled-unicast:labeled-unicast-ipv6-routes": {},
  442.                         "attributes": {
  443.                             "uptodate": true
  444.                         }
  445.                     },
  446.                     {
  447.                         "afi": "bgp-types:ipv4-address-family",
  448.                         "safi": "bgp-types:mpls-labeled-vpn-subsequent-address-family",
  449.                         "bgp-vpn-ipv4:vpn-ipv4-routes": {},
  450.                         "attributes": {
  451.                             "uptodate": true
  452.                         }
  453.                     },
  454.                     {
  455.                         "afi": "bgp-types:ipv4-address-family",
  456.                         "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family",
  457.                         "bgp-labeled-unicast:labeled-unicast-routes": {},
  458.                         "attributes": {
  459.                             "uptodate": true
  460.                         }
  461.                     },
  462.                     {
  463.                         "afi": "bgp-linkstate:linkstate-address-family",
  464.                         "safi": "bgp-linkstate:linkstate-subsequent-address-family",
  465.                         "bgp-linkstate:linkstate-routes": {},
  466.                         "attributes": {
  467.                             "uptodate": true
  468.                         }
  469.                     },
  470.                     {
  471.                         "afi": "bgp-types:ipv4-address-family",
  472.                         "safi": "bgp-l3vpn-mcast:mcast-mpls-labeled-vpn-subsequent-address-family",
  473.                         "bgp-l3vpn-mcast:l3vpn-mcast-routes-ipv4": {},
  474.                         "attributes": {
  475.                             "uptodate": true
  476.                         }
  477.                     },
  478.                     {
  479.                         "afi": "bgp-types:ipv6-address-family",
  480.                         "safi": "bgp-l3vpn-mcast:mcast-mpls-labeled-vpn-subsequent-address-family",
  481.                         "bgp-l3vpn-mcast:l3vpn-mcast-routes-ipv6": {},
  482.                         "attributes": {
  483.                             "uptodate": true
  484.                         }
  485.                     },
  486.                     {
  487.                         "afi": "bgp-types:ipv6-address-family",
  488.                         "safi": "bgp-flowspec:flowspec-l3vpn-subsequent-address-family",
  489.                         "bgp-flowspec:flowspec-l3vpn-ipv6-routes": {},
  490.                         "attributes": {
  491.                             "uptodate": true
  492.                         }
  493.                     }
  494.                 ]
  495.             }
  496.         }
  497.     ]
  498. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement