Skip to content

Commit 7dabf30

Browse files
authored
[zebra] ignore route from default table (#12019)
Signed-off-by: Ying Xie <[email protected]> Signed-off-by: Ying Xie <[email protected]>
1 parent 834f6d7 commit 7dabf30

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From bb3b003840959adf5b5be52e91bc798007c9857a Mon Sep 17 00:00:00 2001
2+
From: Ying Xie <[email protected]>
3+
Date: Thu, 8 Sep 2022 04:20:36 +0000
4+
Subject: [PATCH] From 776a29e8ab32c1364ee601a8730aabb773b0c86b Mon Sep 17
5+
00:00:00 2001 Subject: [PATCH] ignore route from default table
6+
7+
Signed-off-by: Ying Xie <[email protected]>
8+
---
9+
zebra/zebra_fpm_netlink.c | 5 +++++
10+
1 file changed, 5 insertions(+)
11+
12+
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c
13+
index 34be9fb39..d6c875a7e 100644
14+
--- a/zebra/zebra_fpm_netlink.c
15+
+++ b/zebra/zebra_fpm_netlink.c
16+
@@ -283,6 +283,11 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd,
17+
rib_table_info(rib_dest_table(dest));
18+
struct zebra_vrf *zvrf = table_info->zvrf;
19+
20+
+ if (table_info->table_id == RT_TABLE_DEFAULT) {
21+
+ zfpm_debug("%s: Discard default table route", __func__);
22+
+ return 0;
23+
+ }
24+
+
25+
memset(ri, 0, sizeof(*ri));
26+
27+
ri->prefix = rib_dest_prefix(dest);
28+
--
29+
2.17.1
30+

src/sonic-frr/patch/series

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
0007-Add-support-of-bgp-l3vni-evpn.patch
88
0008-Link-local-scope-was-not-set-while-binding-socket-for-bgp-ipv6-link-local-neighbors.patch
99
Disable-ipv6-src-address-test-in-pceplib.patch
10+
0009-ignore-route-from-default-table.patch

0 commit comments

Comments
 (0)