mirror_frr/tools
Dinesh G Dutt 1a11782c40 *: Add source of route as protocol string in ip route pushed into kernel
Ticket: CM-14313
Reviewed By:
Testing Done: bgpmin, ospfmin, bgp_kitchen_sink_test

'ip route show' displays all routes as belonging to protocol zebra.
The user has to run an additional command (in vtysh) to get the actual
source of a route (bgp/ospf/static etc.). This patch addresses that by
pushing the appropriate protocol string into the protocol field of the
netlink route update message. Now you can see routes with the correct
origin as well as filter on them (ip route show proto ospf).

'ospf' is used for both IPv4 and IPv6 routes, even though the OSPF
version is different in both cases.

Sample output (old):
9.9.12.13 via 69.254.2.38 dev swp3.2  proto zebra  metric 20
9.9.13.3  proto zebra  metric 20
        nexthop via 69.254.2.30  dev swp1.2 weight 1
        nexthop via 69.254.2.34  dev swp2.2 weight 1
        nexthop via 69.254.2.38  dev swp3.2 weight 1

Sample output (new):
9.9.12.13 via 69.254.2.38 dev swp3.2  proto bgp  metric 20
9.9.13.3  proto bgp  metric 20
        nexthop via 69.254.2.30  dev swp1.2 weight 1
        nexthop via 69.254.2.34  dev swp2.2 weight 1
        nexthop via 69.254.2.38  dev swp3.2 weight 1

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
2017-01-30 13:40:53 -05:00
..
.gitignore [administrivia] Git should ignore backup files and .loT files 2008-08-22 20:00:46 +01:00
cmd_check.py *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
frr *: Add source of route as protocol string in ip route pushed into kernel 2017-01-30 13:40:53 -05:00
frr-reload.py tools: Fix unbound newaddr variable, fix too-broad except clauses 2017-01-30 13:40:53 -05:00
frr.service debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
Makefile.am debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
mrlg.txt mrlg: Remove obsolete version. 2016-05-26 01:16:28 +00:00
multiple-bgpd.sh tools/multiple-bgpd: Fix the PREV calculation so it works for <4 bgpd 2012-03-04 23:55:01 +00:00
rrcheck.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
rrlookup.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
xml2cli.pl ldpd: adapt the code for Quagga 2016-09-23 09:31:09 -04:00
zc.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
zebra.el Initial revision 2002-12-13 20:15:29 +00:00