Skip to content

Update lag_run_ptf.yml#603

Closed
jayanthij16 wants to merge 1 commit intosonic-net:masterfrom
jayanthij16:patch-1
Closed

Update lag_run_ptf.yml#603
jayanthij16 wants to merge 1 commit intosonic-net:masterfrom
jayanthij16:patch-1

Conversation

@jayanthij16
Copy link

@jayanthij16 jayanthij16 commented May 10, 2018

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

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

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

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

- 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 }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to replace this shell with the ptf_runner.yml file?

@jayanthij16 jayanthij16 requested a review from a team as a code owner March 2, 2022 17:37
@wangxin
Copy link
Collaborator

wangxin commented Apr 17, 2024

We have converted to run tests using pytest instead of ansible playbook. Closing this PR for now.

@wangxin wangxin closed this Apr 17, 2024
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants