Make SSH session generator support generating session files for all devices, like fanout switches.#12974
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
…evices, like fanout switches.
…evices, like fanout switches. (sonic-net#12974) What is the motivation for this PR? Currently, the SSH repo generator will only generate the session files for DUT and PTF in testbeds, but not all the other devices, such as fanout switches and servers. How did you do it? This change updates the ssh_session_gen.py to parse the device inventory csv files, so we can generate all sessions for it. How did you verify/test it? Run it locally, and it outputs the session files as below. Besides the testbeds, now we also outputs the devices folder:
Description of PR
Summary:
Currently, the SSH repo generator will only generate the session files for DUT and PTF in testbeds, but not all the other devices, such as fanout switches and servers.
This change is to add this support in it.
Type of change
Back port request
Approach
What is the motivation for this PR?
Currently, the SSH repo generator will only generate the session files for DUT and PTF in testbeds, but not all the other devices, such as fanout switches and servers.
How did you do it?
This change updates the ssh_session_gen.py to parse the device inventory csv files, so we can generate all sessions for it.
How did you verify/test it?
Run it locally, and it outputs the session files as below. Besides the testbeds, now we also outputs the devices folder:
Any platform specific information?
No.
Supported testbed topology if it's a new test case?
N/A.
Documentation
No changes on how to use it. N/A.