Files
osrg-gobgp/table
IWASE YusukeandFUJITA Tomonori 41f97f1105 cli: Enable to filter EVPN routes by Route Type
Currently, "gobgp" command supports only to display all routes on RIBs,
but with huge RIBs, it is convenient to select routes by a part of NLRI
fields.

This patch enables to filter routes by EVPN Route Type.

For example, when 5 routes for each route type;
$ gobgp global rib -a evpn
   Network                                                                  Labels     Next Hop             AS_PATH              Age        Attrs
*> [type:A-D][rd:65000:100][esi:single-homed][etag:10]                      [10]       0.0.0.0                                   00:01:09   [{Origin: ?}]
*> [type:Prefix][rd:65000:100][etag:10][prefix:10.0.0.0/24]                 [0]        0.0.0.0                                   00:00:04   [{Origin: ?} [ESI: single-homed] [GW: 0.0.0.0]]
*> [type:esi][rd:65000:100][esi:single-homed][ip:10.0.0.1]                             0.0.0.0                                   00:00:19   [{Origin: ?}]
*> [type:macadv][rd:65000:100][etag:10][mac:aa:bb:cc:dd:ee:ff][ip:10.0.0.1] [20,30]    0.0.0.0                                   00:00:54   [{Origin: ?} [ESI: single-homed]]
*> [type:multicast][rd:65000:100][etag:10][ip:10.0.0.1]                                0.0.0.0                                   00:00:33   [{Origin: ?}]

You can select multicast route as following;
$ gobgp global rib -a evpn multicast
   Network                                              Labels     Next Hop             AS_PATH              Age        Attrs
*> [type:multicast][rd:65000:100][etag:10][ip:10.0.0.1]            0.0.0.0                                   00:03:02   [{Origin: ?}]

Signed-off-by: IWASE Yusuke <[email protected]>
2017-12-21 08:23:14 +09:00
..
2017-11-26 21:44:29 +09:00
2016-11-04 13:19:47 +09:00