Skip to content

[ycabled]: Add IPv6 only active-active SoC gRPC#836

Draft
zjswhhh wants to merge 1 commit into
sonic-net:masterfrom
zjswhhh:active-active-ipv6-only-ycabled-20260615
Draft

[ycabled]: Add IPv6 only active-active SoC gRPC#836
zjswhhh wants to merge 1 commit into
sonic-net:masterfrom
zjswhhh:active-active-ipv6-only-ycabled-20260615

Conversation

@zjswhhh

@zjswhhh zjswhhh commented Jun 15, 2026

Copy link
Copy Markdown

Why I did it

Active-active DualToR IPv6 only clusters can omit soc_ipv4. ycabled should continue to prefer IPv4 for dual-stack configs, but connect to the SoC over IPv6 when IPv4 is absent.

How I did it

  • Prefer soc_ipv4 when present.
  • Fall back to soc_ipv6 only when soc_ipv4 is missing.
  • Strip CIDR notation before building the gRPC target.
  • Format IPv6 gRPC targets as [addr]:port.
  • Add ycabled tests for IPv4 preference, IPv6 fallback, and IPv6 target formatting.

How to verify it

  • Run the sonic-ycabled unit tests.
  • With an IPv6 only active-active mux cable config, verify ycabled opens gRPC connections using [soc_ipv6]:<port>.

Signed-off-by: Jing Zhang <zhangjing@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants