mirror_frr/debian
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
..
patches quagga: vtysh-integrated-fix.patch 2015-05-19 18:29:18 -07:00
po Debian Packaging Files 2015-05-19 16:26:49 -07:00
source Debian: Fixup build issues with switch to 3.0 2015-12-02 07:34:38 -08:00
tests debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
changelog debian: Fix changelog so sbuild will work 2017-01-21 07:51:22 -05:00
compat Debian Packaging Files 2015-05-19 16:26:49 -07:00
control debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
copyright Doc: Update URL to freerangerouting.org 2017-01-20 00:34:03 +07:00
frr-doc.docs debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr-doc.info debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr-doc.install debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr-doc.lintian-overrides debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.conf debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.config debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.dirs *: Add source of route as protocol string in ip route pushed into kernel 2017-01-30 13:40:53 -05:00
frr.docs debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.install debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.lintian-overrides debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.logrotate debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.manpages debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.pam debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.postinst debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.postrm debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.preinst debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
frr.prerm debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
README.Debian Debian/Doc: Fix correct reference about FRR fork from Quagga 2017-01-20 02:53:21 +07:00
README.Maintainer debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
rules debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
watch debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00
watchfrr.rc debian: Convert Quagga -> Frr 2017-01-04 09:25:20 -05:00

#
# To check if the patches still apply on new upstream versions:
#
for i in debian/patches/*.diff; do echo -e "#\n# $i\n#"; patch --fuzz=3 --dry-run -p1 < $i; done

#
# Filename transition from zebra to frr
#

Files that keep their names
	/usr/bin/vtysh

Files that got an -pj suffix
	/etc/default/zebra	-> /etc/frr/debian.conf
	/etc/init.d/zebra	-> /etc/init.d/frr
	/etc/zebra/		-> /etc/frr/
	/usr/share/doc/zebra/	-> /usr/share/doc/frr/
	/var/log/zebra/		-> /var/log/frr/
	/var/run/ 		-> /var/run/frr/

Files that were moved
	/usr/sbin/*		-> /usr/lib/frr/