Skip to content

[action] [PR:21649] Fix telemetry/test_events.py for v6 topos#22928

Merged
mssonicbld merged 1 commit into
sonic-net:202511from
mssonicbld:cherry/202511/21649
Mar 13, 2026
Merged

[action] [PR:21649] Fix telemetry/test_events.py for v6 topos#22928
mssonicbld merged 1 commit into
sonic-net:202511from
mssonicbld:cherry/202511/21649

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Fix the following telemetry events for v6 topos:
sonic-events-bgp:notification: Utilize the fix for mgmt ipv6 only setup that uses ip6tables on v6 neighbors for v6 topos. Delete the condition for mgmt ipv6 only setup because v4 neighbors still exist in that setup.
sonic-events-bgp:bgp-state: Consider v6 neighbors in is_bgp_state_idle()
dhcp-relay events: dhcpmon doesn't support v6 topo because it requires ipv4 addr configured on VLAN interface, skip the test for v6 topo
Pass tbinfo to trigger functions, currently only drop_tcp_packets uses it, but more functions (e.g., dhcp-relay if dhcpmon is fixed) will need it in the future
Fixes #21648

Type of change

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

Back port request

  • 202412
  • 202505

Approach

What is the motivation for this PR?

telemetry/test_events.py failed on v6 topos in the following cases:
bgp_events.py
dhcp-relay_events.py

How did you do it?

Add proper v6 fix and skip.

How did you verify/test it?

The test passed on v6 topos.

Any platform specific information?

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

Documentation

Summary:
Fix the following telemetry events for v6 topos:
sonic-events-bgp:notification: Utilize the fix for mgmt ipv6 only setup that uses ip6tables on v6 neighbors for v6 topos. Delete the condition for mgmt ipv6 only setup because v4 neighbors still exist in that setup.
sonic-events-bgp:bgp-state: Consider v6 neighbors in is_bgp_state_idle()
dhcp-relay events: dhcpmon doesn't support v6 topo because it requires ipv4 addr configured on VLAN interface, skip the test for v6 topo
Pass tbinfo to trigger functions, currently only drop_tcp_packets uses it, but more functions (e.g., dhcp-relay if dhcpmon is fixed) will need it in the future
Fixes sonic-net#21648
Signed-off-by: markxiao <markxiao@arista.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: #21649

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
mssonicbld merged commit 17b8fe3 into sonic-net:202511 Mar 13, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants