Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pguibert6WIND
Copy link
Member

Allow the ability to configure 'sid vpn explicit' 128 bit ipv6 address per address family.

@pguibert6WIND pguibert6WIND force-pushed the sid_per_af_explicit branch 2 times, most recently from b216cb7 to 55646b2 Compare June 25, 2025 16:49
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.

Documentation, please.

@pguibert6WIND
Copy link
Member Author

ci:rerun

@github-actions github-actions bot added size/XL and removed size/L labels Jun 30, 2025
@github-actions github-actions bot added size/L and removed size/XL labels Jun 30, 2025
@pguibert6WIND
Copy link
Member Author

ci:rerun

@pguibert6WIND pguibert6WIND force-pushed the sid_per_af_explicit branch from 5bc1cca to cc9a1f0 Compare July 1, 2025 07:35
Copy link
Contributor

@cscarpitta cscarpitta left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@ahsalam ahsalam left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for extending the explicit SID allocation functionality per address family

@pguibert6WIND pguibert6WIND force-pushed the sid_per_af_explicit branch from cc9a1f0 to ced440e Compare July 1, 2025 14:05
@github-actions github-actions bot added size/XL and removed size/L labels Jul 1, 2025
@pguibert6WIND
Copy link
Member Author

ci:rerun

1 similar comment
@pguibert6WIND
Copy link
Member Author

ci:rerun

The mode change algorithm is complex, more readability is needed.
Simplify the algorithm by splitting into multiple if conditions.

Signed-off-by: Philippe Guibert <[email protected]>
Add support for bgp to use explicit SRv6 SID per address-family.
The following command is available under ipv4/ipv6 unicast address
family node:

> sid vpn export explicit X:X::X:X"

If SRv6 SID manager allocates the explicit SID successfully, then BGP
will advertise it.

Signed-off-by: Philippe Guibert <[email protected]>
The following trace may be visible when configuring explicit mode
> 2025/06/24 18:14:50.382809 BGP: [H2QJF-E1VQM] ensure_vrf_tovpn_sid_per_af: explicit-mode seleted without sid value.

Fix the typo: selected instead of seleted.

Signed-off-by: Philippe Guibert <[email protected]>
It should be forbidden to both configure per-address family sid, and
per-vrf sid vpn explicit config.

Fixes: 7169055 ("bgpd: Add support for BGP to use SRv6 SID in an explicit way")

Signed-off-by: Philippe Guibert <[email protected]>
Move some utility functions used to compare expected outputs, outside of
the functions. This is a preparatory commit before hosting explicit
per-address family testing.

Apply black style.

Signed-off-by: Philippe Guibert <[email protected]>
Add a test that controls whether the sid per-vrf unconfiguraiton flushes
the SIDs from the srv6 sid table.

Signed-off-by: Philippe Guibert <[email protected]>
Add a topotest for bgp explicit srv6 sid per address family.

Signed-off-by: Philippe Guibert <[email protected]>
Add documentation about sid vpn export command, under bgp
address-family.

Signed-off-by: Philippe Guibert <[email protected]>
@pguibert6WIND pguibert6WIND force-pushed the sid_per_af_explicit branch from ced440e to 4e26d10 Compare July 2, 2025 10:38
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

@ton31337 ton31337 merged commit 6c54334 into FRRouting:master Jul 3, 2025
14 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.

4 participants