diff --git a/CHANGELOG.md b/CHANGELOG.md index 77459e91..1b4e7a72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - slice.renew() should pass **kwargs through to slice.submit() (Issue [#374](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/374)) - node.execute() retry parameter is off-by-one (and/or misnamed) (Issue [#375](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/375)) - FacilityPort.show() errors out (Issue [#346](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/346)) +- Add support for FPGA model SN1022 (Issue [#382](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/382)) ## [1.7.3] - 08/05/2024 diff --git a/fabrictestbed_extensions/fablib/component.py b/fabrictestbed_extensions/fablib/component.py index 575dd890..10f1027b 100644 --- a/fabrictestbed_extensions/fablib/component.py +++ b/fabrictestbed_extensions/fablib/component.py @@ -77,6 +77,7 @@ class Component: Constants.CMP_GPU_A30: ComponentModelType.GPU_A30, Constants.CMP_NIC_OpenStack: ComponentModelType.SharedNIC_OpenStack_vNIC, Constants.CMP_FPGA_Xilinx_U280: ComponentModelType.FPGA_Xilinx_U280, + Constants.CMP_FPGA_Xilinx_SN1022: ComponentModelType.FPGA_Xilinx_SN1022, } def __str__(self): diff --git a/fabrictestbed_extensions/fablib/constants.py b/fabrictestbed_extensions/fablib/constants.py index 454e82e7..8381626e 100644 --- a/fabrictestbed_extensions/fablib/constants.py +++ b/fabrictestbed_extensions/fablib/constants.py @@ -183,6 +183,7 @@ class Constants: GPU_A30 = "GPU-A30" GPU_A40 = "GPU-A40" FPGA_XILINX_U280 = "FPGA-Xilinx-U280" + FPGA_XILINX_SN1022 = "FPGA-Xilinx-SN1022" CORES = "Cores" RAM = "Ram" DISK = "Disk" @@ -201,4 +202,5 @@ class Constants: CMP_GPU_A30 = "GPU_A30" CMP_NIC_OpenStack = "NIC_OpenStack" CMP_FPGA_Xilinx_U280 = "FPGA_Xilinx_U280" + CMP_FPGA_Xilinx_SN1022 = "FPGA_Xilinx_SN1022" P4_DedicatedPort = "P4_DedicatedPort" diff --git a/fabrictestbed_extensions/fablib/site.py b/fabrictestbed_extensions/fablib/site.py index b3943581..3b93bd81 100644 --- a/fabrictestbed_extensions/fablib/site.py +++ b/fabrictestbed_extensions/fablib/site.py @@ -105,6 +105,11 @@ class ResourceConstants: Constants.PRETTY_NAME: "U280", Constants.HEADER_NAME: "FPGA-Xilinx-U280", }, + Constants.FPGA_XILINX_SN1022: { + Constants.NON_PRETTY_NAME: "fpga_sn1022", + Constants.PRETTY_NAME: "SN1022", + Constants.HEADER_NAME: "FPGA-Xilinx-SN1022", + }, } pretty_names = { "name": "Name", diff --git a/pyproject.toml b/pyproject.toml index b33d2078..f12852f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "ipyleaflet", "ipycytoscape", "tabulate", - "fabrictestbed==1.7.7", + "fabrictestbed==1.7.8", "paramiko", "jinja2>=3.0.0", "pandas",