diff --git a/src/sonic-frr/patch/0007-fix-the-assert-issue-when-the-nexthop-type-is-blackhole.patch b/src/sonic-frr/patch/0007-fix-the-assert-issue-when-the-nexthop-type-is-blackhole.patch new file mode 100644 index 000000000000..4ed2cba5cd67 --- /dev/null +++ b/src/sonic-frr/patch/0007-fix-the-assert-issue-when-the-nexthop-type-is-blackhole.patch @@ -0,0 +1,26 @@ +From aa5980af6325482d56093fe40a2406b43c013be5 Mon Sep 17 00:00:00 2001 +From: wangshengjun +Date: Mon, 16 Nov 2020 17:41:27 +0800 +Subject: [PATCH] zebra:fix the assert issue when the nexthop type is + blackhole. + +Signed-off-by: wangshengjun +--- + zebra/zebra_fpm_netlink.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c +index 74aab82..24c62c6 100644 +--- a/zebra/zebra_fpm_netlink.c ++++ b/zebra/zebra_fpm_netlink.c +@@ -331,6 +331,7 @@ static int netlink_route_info_fill(netlink_route_info_t *ri, int cmd, + ri->rtm_type = RTN_BLACKHOLE; + break; + } ++ return 1; + } + + if ((cmd == RTM_NEWROUTE +-- +2.7.4 + diff --git a/src/sonic-frr/patch/series b/src/sonic-frr/patch/series index 13619c87ff65..74e7f4af615e 100644 --- a/src/sonic-frr/patch/series +++ b/src/sonic-frr/patch/series @@ -4,3 +4,4 @@ 0004-Allow-BGP-attr-NEXT_HOP-to-be-0.0.0.0-due-to-allevia.patch 0005-nexthops-compare-vrf-only-if-ip-type.patch 0006-changes-for-making-snmp-socket-non-blocking.patch +0007-fix-the-assert-issue-when-the-nexthop-type-is-blackhole.patch