From: vdhingra Date: Fri, 9 Oct 2020 16:23:14 +0000 (-0700) Subject: staticd: To set the default value of blackhole type correctly X-Git-Tag: frr-7.5~10^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=12155af7356d4a3fabae033b67f9bcfd7d883918;p=mirror%2Ffrr.git staticd: To set the default value of blackhole type correctly When nexthop is allocated, default value of blockhole type was not getting set, this leads to below problem. The default value should be in-sync with the deafult value in yang model. c t ip route 131.1.1.0/24 Null0 do show running-config ... ! ip route 131.1.1.0/24 blackhole ! end Signed-off-by: vishaldhingra --- diff --git a/staticd/static_routes.c b/staticd/static_routes.c index d9f2faabaf..3ff08b337d 100644 --- a/staticd/static_routes.c +++ b/staticd/static_routes.c @@ -276,6 +276,7 @@ static_add_nexthop(struct route_node *rn, struct static_path *pn, safi_t safi, break; case STATIC_BLACKHOLE: + nh->bh_type = STATIC_BLACKHOLE_NULL; break; case STATIC_IFNAME: ifp = if_lookup_by_name(ifname, nh_svrf->vrf->vrf_id);