-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making loganalyzer fixture multi-dut aware (#2809)
What is the motivation for this PR? In a multi-dut testbed, the existing loganalyzer plugin takes 'rand_one_dut_hostname' and thus analyzes only a single DUT. However, when testing multiple DUTs (instead of rand-one-dut-hostname), the log analyzer would run on one randomly chosen DUT, while the test is repeated on multiple DUTs. Moreover, in a multi-dut testbet for a T2 chassis, we need to analyze the logs on all the DUTS, where affects of action on one linecard (one DUT in the testbed) on another linecard (another DUT in the testbed) could be ignored. How did you do it? This PR makes the logAnalyzer run on all the DUTs in a multi-dut testbed. Even if the test is parameterized with a hostname of one of the DUTS in duthosts, we would analyze all the DUTs in duthosts (all DUTs in the testbed). Changed the return value of loganalyzer fixture to be a dictionary keyed with the hostname of the DUTs, and the value being the analyzer object. Modified tests that are using loganalyzer (to add more exceptions etc.) to use the new dictionary structure. If the test is running on a single DUT, then we modify the loganalyzer object associated with just that DUT. How did you verify/test it? Ran test_features (enumerated using enum_dut_hostname) and validated that the analyzer is run on all the DUTs as the one that the test is ran.
- Loading branch information
1 parent
17ec1cc
commit f302699
Showing
13 changed files
with
59 additions
and
51 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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