Skip to content

Fix telemetry/test_events.py for v6 topos#21649

Merged
StormLiangMS merged 3 commits intosonic-net:masterfrom
markx-arista:master-fix-telemetry-test-events-v6-topo
Jan 30, 2026
Merged

Fix telemetry/test_events.py for v6 topos#21649
StormLiangMS merged 3 commits intosonic-net:masterfrom
markx-arista:master-fix-telemetry-test-events-v6-topo

Conversation

@markx-arista
Copy link
Copy Markdown
Contributor

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

Signed-off-by: markxiao <markxiao@arista.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@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).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@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).

is_v6_topo = is_ipv6_only_topology(tbinfo)

# Get all BGP neighbors and filter by IP version based on management interface
# Get all BGP neighbors and filter by IP version based on v6/non-v6 topo
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the difference between ipv6 mgmt and v6 only topo? @markx-arista

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IPv6 mgmt only setup: management interface on the DUT only has IPv6 address configured
IPv6 only topo: only contains IPv6 neighbors in the topo
This test checks for neighbors, so we definitely should check for IPv6 neighbors on v6 topo. On IPv6 mgmt only setup, both v4 and v6 neighbors still exist, so I don't know why the original code made this change.

Copy link
Copy Markdown
Contributor

@yanmo96 yanmo96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit 7faf130 into sonic-net:master Jan 30, 2026
24 checks passed
@StormLiangMS
Copy link
Copy Markdown
Collaborator

hi @markx-arista could you check the cherrypick conflict?

@markx-arista
Copy link
Copy Markdown
Contributor Author

hi @markx-arista could you check the cherrypick conflict?

Done: Azure/sonic-mgmt.msft#986

abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
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>
Anirudh-nokia pushed a commit to Anirudh-nokia/sonic-mgmt-fork that referenced this pull request Feb 6, 2026
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: ayya <anirudh.ayya@nokia.com>
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
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: nnelluri-cisco <nnelluri@cisco.com>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Feb 13, 2026
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: Raghavendran Ramanathan <rraghav@cisco.com>
anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
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: Zhuohui Tan <zhuohui.tan@amd.com>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 12, 2026
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: Ravali Yeluri (WIPRO LIMITED) <v-ryeluri@microsoft.com>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 13, 2026
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

Cherry-pick PR to 202511: #22928

mssonicbld pushed a commit that referenced this pull request Mar 13, 2026
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
Signed-off-by: markxiao <markxiao@arista.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
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: Abhishek <abhishek@nexthop.ai>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 19, 2026
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>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
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>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
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>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
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>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
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>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Apr 1, 2026
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: selldinesh <dinesh.sellappan@keysight.com>
albertovillarreal-keys pushed a commit to albertovillarreal-keys/sonic-mgmt that referenced this pull request Apr 3, 2026
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>
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Apr 13, 2026
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: opcoder0 <110003254+opcoder0@users.noreply.github.com>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Apr 20, 2026
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: Raghavendran Ramanathan <rraghav@cisco.com>
sudarshankumar4893 pushed a commit to sudarshankumar4893/pervnetbgp-tests that referenced this pull request Apr 20, 2026
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: Sudarshan Kumar (from Dev Box) <sudakumar@microsoft.com>
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.

Bug: telemetry/test_events.py failed on v6 topos

6 participants