Skip to content

[202205][route_check] fix IPv6 address handling#2799

Merged
yxieca merged 1 commit intosonic-net:202205from
stepanblyschak:202205-route_check_ipv6
Apr 18, 2023
Merged

[202205][route_check] fix IPv6 address handling#2799
yxieca merged 1 commit intosonic-net:202205from
stepanblyschak:202205-route_check_ipv6

Conversation

@stepanblyschak
Copy link
Contributor

BACKPORT of #2722

What I did

In case user has configured an IPv6 address on an interface in CONFIG DB in non simplified form like 2000:31:0:0::1/64 it is present in a simplified form in ASIC_DB. This leads to route_check failure since it just compares strings.

How I did it

Convert prefix string using ip_network().

How to verify it

UT replicates the issue.

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)

@yxieca yxieca merged commit fdea806 into sonic-net:202205 Apr 18, 2023
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