[dualtor] create dualtor default tunnel during presetup based on asic type#7809
[dualtor] create dualtor default tunnel during presetup based on asic type#7809kevinskwang merged 1 commit intosonic-net:masterfrom yenlu-keith:master
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Description
In our lab environment, sonic dualTOR router will need to create tunnel before running the testcase.
Steps to reproduce the issue
"dualtor/test_orchagent_active_tor_downstream.py::test_downstream_ecmp_nexthops"
Describe the results you expected
testcase Pass
Additional information you deem important
some of dualtor testcase will need to switch from downlink to uplink by mocking tunnel
so that testcase is able to default have tunnel on below
https://github.com/sonic-net/sonic-swss/blob/master/orchagent/muxorch.cpp#L932
https://github.com/sonic-net/sonic-swss/blob/master/orchagent/muxorch.cpp#L933
to avoid the failure on removing non-existing tunnel during pre-setup.
Mar 6 22:59:58.293515 mth-t0-64 INFO swss#supervisord: tunnelmgrd Cannot find device "tun0"
Mar 6 22:59:52.922587 mth-t0-64 WARNING swss#tunnelmgrd: :- doTunnelRouteTask: Failed to del route 192.168.0.15/32, res