Skip to content

Commit

Permalink
[chassis][voq] Add tests to check fabric link status and reachability. (
Browse files Browse the repository at this point in the history
#6620)

What is the motivation for this PR?
This PR adds test cases of checking fabric links.

How did you do it?
These test cases will compare the following two sets of data on a chassis:

Expected fabric link status and fabric link reachability information
Current fabric link status and reachability
How did you verify/test it?
The new voq tests read the information stored in /voq/fabric_data/ as expected value to check the fabric link status and fabric link reachability information in a system. If the information on the system is different than expected ones, the test will fail.

Any platform specific information?
The expected fabric link status /reachability information that stored in /voq/fabric_data/ is specific to SKU. Each type of cards should have its own expected data in this path.

Supported testbed topology if it's a new test case?
The new tests only runs on t2 systems.
  • Loading branch information
jfeng-arista authored May 15, 2023
1 parent fac816d commit 40fb36b
Show file tree
Hide file tree
Showing 53 changed files with 20,263 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,21 @@ vlan/test_vlan_ping.py:
conditions:
- "asic_type in ['broadcom']"

#######################################
##### voq #####
#######################################
voq/test_fabric_reach.py:
skip:
reason: "Skip test_fabric_reach on unsupported testbed."
conditions:
- "('t2' not in topo_name) or (asic_subtype not in ['broadcom-dnx']) or ('arista_7800' not in platform)"

voq/test_voq_fabric_status_all.py:
skip:
reason: "Skip test_voq_fabric_status_all on unsupported testbed."
conditions:
- "('t2' not in topo_name) or (asic_subtype not in ['broadcom-dnx']) or ('arista_7800' not in platform)"

#######################################
##### vrf #####
#######################################
Expand Down
Loading

0 comments on commit 40fb36b

Please sign in to comment.