mirror_frr/staticd
Donald Sharp fe85601c96 *: The onlink attribute should be owned by the nexthop not the route.
The onlink attribute was being passed from upper level protocols
as an attribute of the route *not* the individual nexthop.  When
we pass this data to the kernel, we treat the onlink as a attribute
of the nexthop.  This commit modifies the code base to allow
us to pass the ONLINK attribute as an attribute of the nexthop.

This commit also fixes static routes that have multiple nexthops
some onlink and some not.

ip route 4.5.6.7/32 192.168.41.1 eveth1 onlink
ip route 4.5.6.7/32 192.168.42.2

S>* 4.5.6.7/32 [1/0] via 192.168.41.1, eveth1 onlink, 00:03:04
  *                  via 192.168.42.2, eveth2, 00:03:04

sharpd@robot ~/frr2> sudo ip netns exec EVA ip route show
4.5.6.7 proto 196 metric 20
	nexthop via 192.168.41.1 dev eveth1 weight 1 onlink
	nexthop via 192.168.42.2 dev eveth2 weight 1

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-01-26 21:02:26 -05:00
..
.gitignore staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
Makefile staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
static_main.c *: add empty array of YANG modules 2018-10-27 16:16:12 -02:00
static_memory.c staticd: Code review comments fixes 2018-07-29 12:43:23 -04:00
static_memory.h staticd: Code review comments fixes 2018-07-29 12:43:23 -04:00
static_nht.c staticd: Fix nht to include SAFI_MULTICAST 2019-01-04 09:48:10 -05:00
static_nht.h staticd: Code review comments fixes 2018-07-29 12:43:23 -04:00
static_routes.c staticd: remove stale header info in static_fixup_intf_nh 2018-11-12 18:34:48 +00:00
static_routes.h staticd: install static routes in a vrf when next-hop interface comes up 2018-11-12 15:08:11 +00:00
static_vrf.c vtysh: fix exit-vrf printing 2018-10-23 22:47:42 +00:00
static_vrf.h staticd: Code review comments fixes 2018-07-29 12:43:23 -04:00
static_vty.c lib: remove the vrf_is_mapped_on_netns() function 2019-01-19 22:49:11 -02:00
static_vty.h staticd: Code review comments fixes 2018-07-29 12:43:23 -04:00
static_zebra.c *: The onlink attribute should be owned by the nexthop not the route. 2019-01-26 21:02:26 -05:00
static_zebra.h staticd: Allow daemon to have backup static routes 2018-07-29 12:43:23 -04:00
staticd.conf.sample staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
subdir.am build: fix not building docs w/o sphinx 2018-09-09 20:01:08 +02:00