Skip to content

Fix IPv6 compatibility in snmp_facts.py#22411

Merged
roy-sror merged 1 commit intosonic-net:masterfrom
nikamirrr:ipv6_snmp_fix
Mar 1, 2026
Merged

Fix IPv6 compatibility in snmp_facts.py#22411
roy-sror merged 1 commit intosonic-net:masterfrom
nikamirrr:ipv6_snmp_fix

Conversation

@nikamirrr
Copy link
Copy Markdown
Contributor

Description of PR

This PR fixes the missing IPv6 in the snmp_facts module, when running >5 version of pysnmp and IPv6 on the setup

Summary:
Fixes # (issue)
Complementing the following PRs.
#21272
#21045
Added a UDP6 transport option in the new async version of the code

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

SNMP tests fail on on the DUT with IPv6, and new 24.04 ubuntu container. Errors when loading the snmp_facts since unable to create a UDP Transport from IPv6 address

How did you do it?

Added an option to use UDP6 transport, reused the address type check code

How did you verify/test it?

Ran on the setups with both IPv4 and IPv6

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@nikamirrr nikamirrr requested a review from wangxin February 13, 2026 08:26
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@github-actions github-actions bot requested review from r12f and xwjiang-ms February 13, 2026 08:26
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: nmirin <nikolay.a.mirin@gmail.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@nikamirrr
Copy link
Copy Markdown
Contributor Author

Tagging @congh-nvidia and @nhe-NV

@nikamirrr
Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@roy-sror roy-sror merged commit 67cf0ba into sonic-net:master Mar 1, 2026
22 checks passed
aronovic pushed a commit to aronovic/sonic-mgmt that referenced this pull request Mar 3, 2026
Signed-off-by: Mihut Aronovici <aronovic@cisco.com>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Mar 3, 2026
Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.com>
aronovic pushed a commit to aronovic/sonic-mgmt that referenced this pull request Mar 10, 2026
Signed-off-by: Mihut Aronovici <aronovic@cisco.com>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Mar 16, 2026
Signed-off-by: selldinesh <dinesh.sellappan@keysight.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
Signed-off-by: Abhishek <abhishek@nexthop.ai>
vrajeshe pushed a commit to vrajeshe/sonic-mgmt that referenced this pull request Mar 23, 2026
Signed-off-by: Venkata Gouri Rajesh Etla <vrajeshe@cisco.com>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
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.

3 participants