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

[Bgpcfgd] Update bgpcfgd to handle SRV6_MY_SIDS table's key as an ipv6 prefix #21468

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BYGX-wcr
Copy link
Contributor

Why I did it

To adapt bgpcfgd to the new schema of SRV6_MY_SIDS

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@BYGX-wcr BYGX-wcr requested a review from abdosi January 17, 2025 21:40
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -71,10 +69,10 @@ def sids_set_handler(self, key, data):
log_err("Found a SRv6 SID config entry associated with unsupported action: {} | {}".format(key, data))
return False

sid = SID(locator_name, ip_addr, data) # the information in data will be parsed into SID's attributes
sid = SID(locator_name, ip_prefix, data) # the information in data will be parsed into SID's attributes
Copy link
Contributor

Choose a reason for hiding this comment

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

where are we doing validation for prefix_len >= block_len + node_len ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added in the new commit

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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. The SID is configured as a prefix in FRR.
The CLI to support this has been merged into FRR mainline (FRRouting/frr#16894). The CLI has been ported into SONiC mainline (#21380).

abdosi
abdosi previously approved these changes Jan 21, 2025
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BYGX-wcr BYGX-wcr force-pushed the srv6-bgpcfgd-followup branch from cca4f81 to b471d82 Compare January 21, 2025 18:48
@BYGX-wcr BYGX-wcr force-pushed the srv6-bgpcfgd-followup branch from b471d82 to ffa4a1e Compare January 21, 2025 18:48
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

5 participants