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

Add route_check.py support for IPv4-mapped IPv6 addresses #3777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gord1306
Copy link
Contributor

The IPv4-mapped IPv6 address format differs between IP addresses and routes.

What I did

  • For IP addresses, the format is represented in hexadecimal (e.g., ::ffff:a1b:bd11).
  • For routes, the automated generation uses dotted decimal notation (e.g., ::ffff:10.27.189.17).

Previously, route_check.py would generate warning logs due to mismatches between the interface table and the route table caused by these format differences.

How I did it

This commit updates route_check.py to handle IPv4-mapped IPv6 addresses consistently, ensuring that both formats are treated as equivalent values.

How to verify it

Add new test data to verify the interface with IPv4-mapped IPv6 address

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

The IPv4-mapped IPv6 address format differs between IP addresses and routes.

* For IP addresses, the format is represented in hexadecimal (e.g., ::ffff:a1b:bd11).
* For routes, the automated generation uses dotted decimal notation (e.g., ::ffff:10.27.189.17).

Previously, route_check.py would generate warning logs due to mismatches between
the interface table and the route table caused by these format differences.

This commit updates route_check.py to handle IPv4-mapped IPv6 addresses consistently,
ensuring that both formats are treated as equivalent values.

Signed-off-by: gord_chen <[email protected]>
@gord1306 gord1306 force-pushed the ipv4_mapped_ipv6_route_check branch from 3964d81 to c6691f7 Compare February 24, 2025 15:13
@mssonicbld
Copy link
Collaborator

/azp run

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants