Skip to content

[route/test_route_flap] - [T2] - Test fails if the selected duthost has downstream neighbors for t2-topo #11460

@sanjair-git

Description

@sanjair-git

Description

  • For T2 Chassis(topo-t2), route/test_route_flap works fine, if the selected duthost has upstream T3 neighbors.
  • Similarly, if the selected duthost has downstream T1 neighbors and if there is only one dut with T1 neighbors, test works fine too.
  • But if the selected duthost has downstream T1 neighbors and if there are more than one dut with downstream neighbors, route/test_route_flap fails.

Steps to reproduce the issue:

  • Run route/test_route_flap test case on T2 Chassis with 'topo-t2' topology having 3 line cards with atleast 2 cards having downstream T1 neighbors.

Describe the results you received:

send_recv_ping_packet fails as shown below after selecting ptf_send_port and ptf_recv_ports,

                #test link status
>               send_recv_ping_packet(ptfadapter, ptf_send_port, ptf_recv_ports, vlan_mac, dut_mac, ptf_ip, ping_ip)

route/test_route_flap.py:349: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
route/test_route_flap.py:154: in send_recv_ping_packet
    testutils.verify_packet_any_port(ptfadapter, masked_exp_pkt, ptf_recv_ports, timeout=WAIT_EXPECTED_PACKET_TIMEOUT)
/usr/lib/python2.7/dist-packages/ptf/testutils.py:2538: in verify_packet_any_port
    % (ports, device_number, result.format()))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.common.plugins.ptfadapter.ptfadapter.PtfTestAdapter testMethod=runTest>
msg = 'Did not receive expected packet on any of ports [33, 55, 32, 63, 45, 62, 44, 53, 47, 50, 58, 52, 60, 39, 48, 41, 36, ... 8E  >/...u........J.\n0050  F2 00 83 E2 3C 99                                ....<.\n==============================\n'

Describe the results you expected:

  • route/test_route_flap should pass, irrespective of the dut selection on T2 Chassis.

Additional information you deem important:

**Output of `show version`:**

```
SONiC Software Version: SONiC.20220532.54
SONiC OS Version: 11
Distribution: Debian 11.8
Kernel: 5.10.0-23-2-amd64
Build commit: b9e6caad98
Build date: Tue Jan  9 00:13:06 UTC 2024
Built by: cloudtest@95bebd0dc000000

```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions