Open slutati1536 opened 3 years ago
@bingwang-ms , could you please check this on SN4600C?
@prsunny I can't repro the issue on SN4600C in L2 mode. @slutati1536 Could you please re-run the case with lattest code? We updated the code recently. Thanks
Description
on a switch with L2 configuration (https://github.com/Azure/SONiC/wiki/L2-Switch-mode) the test_vlan fails during the setup configuration on the switch (the function create_vlan_interfaces(vlan_ports_list, ptfhost) in setup_vlan is failing).
The PR #3892 changed the vlan_ports_list, the index of the ports is incorrect on setup with L2. It's causing the failure during create_vlan_interfaces:
Steps to reproduce the issue:
better to put except with breakpoint during setup_vlan, like so:
admin@r-tigris-04:~$ show boot Current: SONiC-OS-202012.142-8915e488b_Internal Next: SONiC-OS-202012.142-8915e488b_Internal Available: SONiC-OS-202012.142-8915e488b_Internal
admin@r-tigris-04:~$ show platform summary Platform: x86_64-mlnx_msn3800-r0 HwSKU: Mellanox-SN3800-D112C8 ASIC: mellanox ASIC Count: 1 admin@r-tigris-04:~$