Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2520,6 +2520,14 @@ generic_config_updater/add_cluster/test_add_cluster.py:
conditions:
- asic_type in ['vs']

generic_config_updater/add_cluster/test_port_speed_change.py:
skip:
reason: "This test case right now only supported for Nokia Chassis"
conditions_logical_operator: "OR"
conditions:
- "hwsku not in ['Nokia-IXR7250E-36x400G']"
- "asic_type in ['vs']"

generic_config_updater/test_bgp_prefix.py::test_bgp_prefix_tc1_suite:
skip:
reason: "Cisco 8122 backend compute ai platform is not supported. Skip on VS platform due to low success rate."
Expand Down
44 changes: 44 additions & 0 deletions tests/generic_config_updater/add_cluster/platform_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""
This module defines mappings and relationships between various
platforms and their supported network speeds, and configuration parameters.

Attributes:
PLATFORM_SUPPORTED_SPEEDS_MAP (dict):
A mapping of platform identifiers to the list of supported
network speeds (in Mbps). Each key is a platform identifier
(e.g., 'x86_64-nokia_ixr7250e_36x400g-r0'), and the value is
a list of supported speed values as strings.

PLATFORM_SPEED_LANES_MAP (dict):
A nested mapping of platform identifiers to speed-specific lanes configuration.
For each platform identifier, there is a dictionary
where keys are supported speed values and values are the number
of lanes required for that speed.

SPEED_FEC_MAP (dict):
A mapping of network speeds to their supported Forward Error
Correction (FEC) modes. The keys are speed values (as strings)
and the values are lists of FEC modes (e.g., "rs", "none").

Usage:
These mappings enable quick lookups to validate supported configurations
for specific platforms, as in some times these mappings exist in
platform files but this is not always the case for all platforms.
They are used by test_port_speed_change.py.
"""

PLATFORM_SUPPORTED_SPEEDS_MAP = {
'x86_64-nokia_ixr7250e_36x400g-r0': ['100000', '400000']
}

PLATFORM_SPEED_LANES_MAP = {
'x86_64-nokia_ixr7250e_36x400g-r0': {
'100000': 4,
'400000': 8
}
}

SPEED_FEC_MAP = {
'100000': ["rs", "none"],
'400000': ["rs"]
}
Loading
Loading