Skip to content
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: Do not scan update-groups if default-originate timer is set to 0 #16720

Conversation

ton31337
Copy link
Member

@ton31337 ton31337 commented Sep 2, 2024

No description provided.

With lots of update-groups, subgroups, this could be very tricky and the timer
is spawned even if it's totally unnecessary (default-originate is not enabled).

Signed-off-by: Donatas Abraitis <[email protected]>
@donaldsharp
Copy link
Member

do we have other timers that are 0-X and 0 means run it immediately? In other words do we need to go through and make our behavior consistent for all 0 length timers?

@ton31337
Copy link
Member Author

ton31337 commented Sep 3, 2024

do we have other timers that are 0-X and 0 means run it immediately? In other words do we need to go through and make our behavior consistent for all 0 length timers?

Probably yes, I'll review them separately then.

If the neighbor is not configured with `neighbor X default-originate route-map ...`,
then this timer is useless.

Change the logic to be it disabled by default, but enabled automatically once the
route-map is configured for default-originate command.

Automatically assigned timer value is as before, 5 seconds.

Signed-off-by: Donatas Abraitis <[email protected]>
@github-actions github-actions bot added size/S and removed size/XS labels Sep 3, 2024
@riw777 riw777 self-requested a review September 3, 2024 15:00
Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@riw777 riw777 merged commit 6109043 into FRRouting:master Sep 18, 2024
11 checks passed
@ton31337 ton31337 deleted the fix/default_originate_not_needed_if_not_enabled branch September 18, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants