From 4e5a24b07ad01a695bb6e087775b8009ff3f1457 Mon Sep 17 00:00:00 2001 From: wjro Date: Wed, 7 Jan 2026 13:22:41 -0500 Subject: [PATCH] fix: added missing functions to impl SwitchClient for unmanagedSwitch --- harmony/src/infra/brocade.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/harmony/src/infra/brocade.rs b/harmony/src/infra/brocade.rs index 58a1241..2bc90d2 100644 --- a/harmony/src/infra/brocade.rs +++ b/harmony/src/infra/brocade.rs @@ -139,7 +139,7 @@ impl SwitchClient for BrocadeSwitchClient { pub struct UnmanagedSwitch; impl UnmanagedSwitch { - pub async fn init( ) -> Result { + pub async fn init() -> Result { Ok(Self) } } @@ -162,7 +162,14 @@ impl SwitchClient for UnmanagedSwitch { channel_name: &str, switch_ports: Vec, ) -> Result { - todo!("unmanaged switch. Nothing to do.") + todo!("unmanaged switch. Nothing to do.") + } + + async fn clear_port_channel(&self, ids: &Vec) -> Result<(), SwitchError> { + todo!("unmanged switch. Nothing to do.") + } + async fn configure_interface(&self, ports: &Vec) -> Result<(), SwitchError> { + todo!("unmanged switch. Nothing to do.") } }