-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bgpd: fix table-map option #17802
base: master
Are you sure you want to change the base?
bgpd: fix table-map option #17802
Conversation
Schedule zebra to withdraw routes filtered out by a table-map. Signed-off-by: Alexander Skorichenko <[email protected]>
e2cfe50
to
167d725
Compare
can you show me the broken behavior before this change? |
If a neighbor shares two routes 10.0.0.1/32, 10.10.10.1/32 :
And a peer has a table map to permit only 10.0.0.1/32 route
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a topotest for this case because it's seems easy to replicate.
bool is_add = true; | ||
|
||
if (bgp->table_map[afi][safi].name) { | ||
struct attr local_attr = *(pi->attr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can you drop ()
?
struct attr local_attr = *pi->attr;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks okay ... waiting on topo test
Schedule zebra to withdraw routes filtered out by a table-map.