Closed
Conversation
Added --platform-dir argument for t1-64-lag case support.
Verification:
root@c87163d33c5c:~/acstests# ptf --test-dir . --platform remote --platform-dir ~/ptftests lag_test.LacpTimingTest -t "exp_iface=63; timeout=35; packet_timing=1; ether_type=0x8809; interval_count=3"
lag_test.LacpTimingTest ... ok
----------------------------------------------------------------------
Ran 1 test in 3.738s
OK
root@c87163d33c5c:~/acstests#
Without --platform-dir option, interface socket error was seen due to incorrect port-map config
(Pdb) config["port_map"]
{(0, 27): 'eth27', (0, 20): 'eth20', (0, 14): 'eth14', (0, 7): 'eth7', (0, 16): 'eth16', (0, 10): 'eth10', (0, 3): 'eth3', (0, 28): 'eth28', (0, 21): 'eth21', (0, 15): 'eth15', (0, 24): 'eth24', (0, 17): 'eth17', (0, 11): 'eth11', (0, 4): 'eth4', (0, 29): 'eth29', (0, 22): 'eth22', (0, 0): 'eth0', (0, 25): 'eth25', (0, 18): 'eth18', (0, 12): 'eth12', (0, 5): 'eth5', (0, 30): 'eth30', (0, 8): 'eth8', (0, 23): 'eth23', (0, 1): 'eth1', (0, 26): 'eth26', (0, 19): 'eth19', (0, 13): 'eth13', (0, 6): 'eth6', (0, 31): 'eth31', (0, 9): 'eth9', (0, 2): 'eth2'}
(Pdb)
Available ptf interfaces for port-map config: eth1,eth4,eth1, eth4 , eth5 , eth16 , eth17 , eth20 , eth21 , eth34 , eth36 ,eth37 ,eth38, eth39 , eth42 ,eth44 ,eth45 ,eth46 ,eth47 ,eth50 ,eth52 ,eth53 ,eth54 ,eth55 ,eth58 ,eth60, eth61, eth62 , eth63
stcheng
suggested changes
May 11, 2018
|
|
||
| - name: Run lag_test.{{ lag_ptf_test_name }} on PTF docker. | ||
| shell: ptf --test-dir . --platform remote lag_test.{{ lag_ptf_test_name }} -t "{{ params }}" | ||
| shell: ptf --test-dir . --platform remote --platform-dir ~/ptftests lag_test.{{ lag_ptf_test_name }} -t "{{ params }}" |
Contributor
There was a problem hiding this comment.
is it possible to replace this shell with the ptf_runner.yml file?
Collaborator
|
We have converted to run tests using pytest instead of ansible playbook. Closing this PR for now. |
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
Submodule src/sonic-utilities d12734e..f28b720: > Revert "Removed 'show interfaces alias'. (sonic-net#412)" (sonic-net#603) Signed-off-by: Ying Xie <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added --platform-dir argument for t1-64-lag case support.
Verification:
root@c87163d33c5c:~/acstests# ptf --test-dir . --platform remote --platform-dir ~/ptftests lag_test.LacpTimingTest -t "exp_iface=63; timeout=35; packet_timing=1; ether_type=0x8809; interval_count=3"
lag_test.LacpTimingTest ... ok
Ran 1 test in 3.738s
OK
root@c87163d33c5c:~/acstests#
Without --platform-dir option, interface socket error was seen due to incorrect port-map config
(Pdb) config["port_map"]
{(0, 27): 'eth27', (0, 20): 'eth20', (0, 14): 'eth14', (0, 7): 'eth7', (0, 16): 'eth16', (0, 10): 'eth10', (0, 3): 'eth3', (0, 28): 'eth28', (0, 21): 'eth21', (0, 15): 'eth15', (0, 24): 'eth24', (0, 17): 'eth17', (0, 11): 'eth11', (0, 4): 'eth4', (0, 29): 'eth29', (0, 22): 'eth22', (0, 0): 'eth0', (0, 25): 'eth25', (0, 18): 'eth18', (0, 12): 'eth12', (0, 5): 'eth5', (0, 30): 'eth30', (0, 8): 'eth8', (0, 23): 'eth23', (0, 1): 'eth1', (0, 26): 'eth26', (0, 19): 'eth19', (0, 13): 'eth13', (0, 6): 'eth6', (0, 31): 'eth31', (0, 9): 'eth9', (0, 2): 'eth2'}
(Pdb)
Available ptf interfaces for port-map config: eth1,eth4,eth1, eth4 , eth5 , eth16 , eth17 , eth20 , eth21 , eth34 , eth36 ,eth37 ,eth38, eth39 , eth42 ,eth44 ,eth45 ,eth46 ,eth47 ,eth50 ,eth52 ,eth53 ,eth54 ,eth55 ,eth58 ,eth60, eth61, eth62 , eth63
Description of PR
Fixes # (issue)
Type of change
Approach
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation