Skip to content

Conversation

@anders-nexthop
Copy link
Contributor

Description of PR

Summary:

telemetry/test_events.py needs to be enhanced to run on ipv6 topos. is_mgmt_ipv6_only was added here, which can be used to check for ipv6-only topos. This can be used in this test to pass the correct ip address into the gnxi tool, which has already been enhanced to handle ipv6 addresses.

Changes were required to is_bgp_state_idle() in tests/common/devices/sonic.py to check for active neighbors in both address families.

The conditional skip has been removed.

Closes #20758

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?

Increase IPv6-only coverage.

How did you do it?

  • extend bgp idle check to check ipv6 routes as well as ipv4
  • use ipv6 mgmt addr in test_events.py when running on ipv6 topo
  • remove conditional skip for test_events.py on ipv6 topo

How did you verify/test it?

Run the test on a virtual device with an ipv6-only topo. It fails before this change and passes after it.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

* extend bgp idle check to check ipv6 routes as well as ipv4
* use ipv6 mgmt addr in test_events.py when running on ipv6 topo
* remove conditional skip for test_events.py on ipv6 topo

Signed-off-by: Anders Linn <[email protected]>
@anders-nexthop anders-nexthop force-pushed the anders.20758.test_events-for-ipv6 branch from 642d80f to 32b9583 Compare December 6, 2025 01:04
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
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.

Bug:[IPv6 only topo] [test_events.py] test_events.py::test_events is not updated to IPv6 only topology

2 participants