-
Notifications
You must be signed in to change notification settings - Fork 991
Open
Labels
Description
Is it platform specific
generic
Importance or Severity
High
Description of the bug
#22956 changed the route verification command from "ip route show" to "show ip route", as the use of the latter allows for a netlink bug to be bypassed on the SONiC DUT. This command does not exist on the ptf, and so fails.
Steps to Reproduce
Run any of the following dualtor tests:
- test_bgp_block_loopback1
- test_orchagent_slb
Actual Behavior and Expected Behavior
Route verificaion should not fail with "command not found" on the ptf.
Relevant log output
0:00:00.002023 msg = non-zero return code invocation = {'module_args': {'_raw_params': 'show ip route', '_uses_shell': True, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}} _ansible_no_log = False stdout = stderr = /bin/sh: 1: show: not found"">ptfhost = <tests.common.devices.ptf.PTFHost object at 0x7f7bf0109a90>, upper_tor_host = <MultiAsicSonicHost ldp203>, lower_tor_host = <MultiAsicSonicHost ldp205>
> ptfhost.shell("show ip route")
self = <tests.common.devices.ptf.PTFHost object at 0x7f7bf0109a90>, module_args = ['show ip route'], complex_args = {}
function_name = 'setup_interfaces', lines = [' ptfhost.shell("show ip route")\n'], index = 0, verbose = True, module_ignore_errors = False, module_async = False
E cmd = show ip route
E invocation = {'module_args': {'_raw_params': 'show ip route', '_uses_shell': True, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}
lines = [' ptfhost.shell("show ip route")\n']
module_args = ['show ip route']Output of show version
Attach files (if any)
No response
Reactions are currently unavailable