Skip to content
Draft
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
1 change: 1 addition & 0 deletions cmake/AsicConfigV2ConfigCli.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(
"fboss/lib/asic_config_v2/bcmxgs.py"
"fboss/lib/asic_config_v2/gen.py"
"fboss/lib/asic_config_v2/all_asic_config_params.py"
"fboss/lib/asic_config_v2/icecube800banw.py"
"fboss/lib/asic_config_v2/icecube800bc.py"
"fboss/lib/asic_config_v2/tomahawk6.py"
"fboss/lib/asic_config_v2/montblanc.py"
Expand Down
15 changes: 15 additions & 0 deletions fboss/lib/asic_config_v2/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ python_library(
],
)

python_library(
name = "icecube800banw",
srcs = ["icecube800banw.py"],
labels = ["autodeps2_generated"],
deps = [
":tomahawk6",
"//fboss/agent/hw/config:asic_config_v2-py-deprecated",
"//fboss/lib/platform_mapping_v2:asic_vendor_config",
"//fboss/lib/platform_mapping_v2:gen-library",
"//fboss/lib/platform_mapping_v2:platform_mapping_config-py-deprecated",
"//fboss/lib/platform_mapping_v2:platform_mapping_v2",
],
)

python_library(
name = "asic_config",
srcs = ["asic_config.py"],
Expand Down Expand Up @@ -65,6 +79,7 @@ python_binary(
deps = [
":all_asic_config_params",
":icecube800bc",
":icecube800banw",
":montblanc",
":wedge800bact",
"//fboss/agent/hw/config:asic_config_v2-py-deprecated",
Expand Down
10 changes: 10 additions & 0 deletions fboss/lib/asic_config_v2/all_asic_config_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
PlatformType.PLATFORM_JANGA800BIC: {},
# chassis is default here
PlatformType.PLATFORM_TAHAN800BC: {},
PlatformType.PLATFORM_ICECUBE800BANW: {
"default": {
"asic_config_params": asic_config_thrift.AsicConfigParameters(
configType=asic_config_thrift.AsicConfigType.YAML_CONFIG,
exactMatch=False,
mmuLossless=False,
configGenType=asic_config_thrift.AsicConfigGenType.DEFAULT,
),
}
},
PlatformType.PLATFORM_ICECUBE800BC: {
"default": {
"asic_config_params": asic_config_thrift.AsicConfigParameters(
Expand Down
2 changes: 2 additions & 0 deletions fboss/lib/asic_config_v2/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
from fboss.lib.asic_config_v2.icecube800bc import gen_icecube800bc_asic_config
from fboss.lib.asic_config_v2.montblanc import gen_montblanc_asic_config
from fboss.lib.asic_config_v2.wedge800bact import gen_wedge800bact_asic_config
from fboss.lib.asic_config_v2.icecube800banw import gen_icecube800banw_asic_config
from neteng.fboss.fboss_common.ttypes import PlatformType
from thrift.util import Serializer

_PLATFORM_TO_ASIC_CONFIG_FUNC: Dict[PlatformType, Any] = {
PlatformType.PLATFORM_ICECUBE800BANW: gen_icecube800banw_asic_config,
PlatformType.PLATFORM_ICECUBE800BC: gen_icecube800bc_asic_config,
PlatformType.PLATFORM_MONTBLANC: gen_montblanc_asic_config,
PlatformType.PLATFORM_WEDGE800BACT: gen_wedge800bact_asic_config,
Expand Down
Loading
Loading