From ac1a0bc325cf86aa0b6d054eff5cf5d3315eda81 Mon Sep 17 00:00:00 2001 From: thomas-am Date: Tue, 5 Nov 2024 15:01:46 -0800 Subject: [PATCH 1/2] fixing ClosFabricSwitch import --- src/rack_plane_fabric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rack_plane_fabric.py b/src/rack_plane_fabric.py index d24099f..4160a00 100644 --- a/src/rack_plane_fabric.py +++ b/src/rack_plane_fabric.py @@ -7,14 +7,14 @@ from typing import Tuple -from src.closfabric import ClosFabricSwitch - if __package__ is None or __package__ == "": import generated.infra_pb2 as infra import builders as bld + from keysight_chakra.closfabric import ClosFabricSwitch else: from .generated import infra_pb2 as infra from . import builders as bld + from .closfabric import ClosFabricSwitch class RackPlaneFabricBuilder(bld.FabricBuilder): From 4d089eb3cc5de07ffa521327074d7b914ee7f67f Mon Sep 17 00:00:00 2001 From: thomas-am Date: Tue, 5 Nov 2024 15:02:28 -0800 Subject: [PATCH 2/2] RackPlaneFabricBuilder: setting name as RackPlaneFabric (which is consistent with RackPlaneHostBuilder) --- src/rack_plane_fabric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rack_plane_fabric.py b/src/rack_plane_fabric.py index 4160a00..6957e85 100644 --- a/src/rack_plane_fabric.py +++ b/src/rack_plane_fabric.py @@ -23,7 +23,7 @@ class RackPlaneFabricBuilder(bld.FabricBuilder): supports connecting to switching via multiple planes """ - name: str = "rack plane fabric" + name: str = "RackPlaneFabric" description: str = "fabric that users multiple planes inside a rack" lowest_device: bld.DeviceBuilder = None