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: Send FQDN capability via dynamic capability if enabled #15301

Merged

Conversation

ton31337
Copy link
Member

@ton31337 ton31337 commented Feb 5, 2024

No description provided.

Since we have a knob to disable sending FQDN capability, it MUST be checked
before sending it using dynamic capabilities.

Signed-off-by: Donatas Abraitis <[email protected]>
@frrbot frrbot bot added the bgp label Feb 5, 2024
@ton31337 ton31337 added this to the 10.0 milestone Feb 5, 2024
Allow BGP dynamic capabilities handle this gracefully.

Signed-off-by: Donatas Abraitis <[email protected]>
@github-actions github-actions bot added size/S and removed size/XS labels Feb 5, 2024
@ton31337 ton31337 force-pushed the fix/fqdn_capability_dynamic branch from b94ddf1 to c8acc67 Compare February 5, 2024 10:24
@@ -4574,7 +4574,7 @@ static const struct peer_flag_action peer_flag_action_list[] = {
{PEER_FLAG_AIGP, 0, peer_change_none},
{PEER_FLAG_GRACEFUL_SHUTDOWN, 0, peer_change_none},
{PEER_FLAG_CAPABILITY_SOFT_VERSION, 0, peer_change_none},
{PEER_FLAG_CAPABILITY_FQDN, 0, peer_change_reset},
{PEER_FLAG_CAPABILITY_FQDN, 0, peer_change_none},
{0, 0, 0}};
Copy link
Member

Choose a reason for hiding this comment

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

are you sure ? cisco does resets upon config ?

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you mean?

Copy link
Member

Choose a reason for hiding this comment

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

why are you changing the behaviour ?
I think an other product vendor like cisco does perform a reset when the fqdn param is modified.
so we want to keep this behaviour identical.
what is the reason why you set it to none?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because dynamic capabilities logic makes no sense then. If you have dynamic capabilities, the reset is not necessary.

@riw777 riw777 self-requested a review February 6, 2024 14:43
@donaldsharp
Copy link
Member

@ton31337 is this a bug fix or a feature? This feels more like a feature than a bug fix, yet you've marked it for 10.0

@ton31337
Copy link
Member Author

ton31337 commented Feb 6, 2024

it's not a feature, it's a broken implementation that was just recently added for fqdn capability "disable mode". If we have dynamic capabilities enabled, then without this fix, fqdn capability will be send despite it's disabled.

@donaldsharp donaldsharp merged commit e369d2c into FRRouting:master Feb 6, 2024
9 checks passed
@ton31337 ton31337 deleted the fix/fqdn_capability_dynamic branch February 6, 2024 18:27
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