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

babel: Clean babel config on babel daemon stop #17685

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

ykholod
Copy link

@ykholod ykholod commented Dec 20, 2024

When deactivating babel no router babel and later re-enabling it router babel the previous configuration is still in place.

Steps to reproduce:

  • Enable babel
  • Configure babel
  • Disable babel with "no router babel"
  • Verify config

Expected correct behavior: No config present

Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

LGTM

babeld/babeld.c Outdated
diversity_kind = DIVERSITY_NONE;
diversity_factor = BABEL_DEFAULT_DIVERSITY_FACTOR;
resend_delay = BABEL_DEFAULT_RESEND_DELAY;
smoothing_half_life = BABEL_DEFAULT_SMOOTHING_HALF_LIFE;
Copy link
Member

Choose a reason for hiding this comment

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

By the way, shouldn't we use change_smoothing_half_life()? I see it's also used to calculate two_to_the_one_over_hl.

Copy link
Author

Choose a reason for hiding this comment

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

You are right, that's the way to do it. Just fixed that.

When deactivating babel no router babel and later re-enabling
it router babel the previous configuration is still in place.

Steps to reproduce:
 - Enable babel
 - Configure babel
 - Disable babel with "no router babel"
 - Verify config

Expected correct behavior: No config present

Signed-off-by: Yaroslav Kholod <[email protected]>
Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

Slava Ukraini 🇺🇦

@ykholod
Copy link
Author

ykholod commented Dec 20, 2024

Slava Ukraini 🇺🇦

Heroyam Slava

@Jafaral Jafaral merged commit ef4e229 into FRRouting:master Dec 20, 2024
11 checks passed
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