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: Mark VRF instance as auto created if import vrf is configured for this instance #16374

Conversation

ton31337
Copy link
Member

Closes #16355

@ton31337
Copy link
Member Author

@Mergifyio backport dev/10.1 stable/10.0 stable/9.1 stable/9.0

Copy link

mergify bot commented Jul 12, 2024

@frrbot frrbot bot added the tests Topotests, make check, etc label Jul 13, 2024
@github-actions github-actions bot added size/L and removed size/XS labels Jul 13, 2024
@ton31337 ton31337 force-pushed the fix/bgpd_import_vrf_multiple_instances branch 3 times, most recently from 55536d3 to 355ecd4 Compare July 13, 2024 22:03
@ton31337
Copy link
Member Author

@Mergifyio rebase

Copy link

mergify bot commented Jul 14, 2024

rebase

❌ Pull request can't be updated with latest base branch changes

Mergify needs the author permission to update the base branch of the pull request.
@opensourcerouting needs to authorize modification on its head branch.

ton31337 added 5 commits July 15, 2024 16:10
…or this instance

If we create a new BGP instance (in this case VRF instance), it MUST be marked
as auto created, to avoid bgpd changing VRF instance's ASN to the default VRF's.

That's because of the ordering when FRR reload is happening.

Signed-off-by: Donatas Abraitis <[email protected]>
When using e.g. `adverise-all-vni`, and/or `import vrf ...`, the VRF instance
is created with a default's VRF ASN and tagged as AUTO_VRF. We MUST skip them
here also.

Signed-off-by: Donatas Abraitis <[email protected]>
… BGP instance

Auto created VRF instances does not have any config, so it's not relevant
depending on them.

Signed-off-by: Donatas Abraitis <[email protected]>
@ton31337 ton31337 force-pushed the fix/bgpd_import_vrf_multiple_instances branch from 355ecd4 to bfedb38 Compare July 15, 2024 13:22
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants