fix: added missing functions to impl SwitchClient for unmanagedSwitch
Some checks failed
Run Check Script / check (pull_request) Failing after 53s

This commit is contained in:
2026-01-07 13:22:41 -05:00
parent 7f0b77969c
commit 4e5a24b07a

View File

@@ -139,7 +139,7 @@ impl SwitchClient for BrocadeSwitchClient {
pub struct UnmanagedSwitch;
impl UnmanagedSwitch {
pub async fn init( ) -> Result<Self, ()> {
pub async fn init() -> Result<Self, ()> {
Ok(Self)
}
}
@@ -162,7 +162,14 @@ impl SwitchClient for UnmanagedSwitch {
channel_name: &str,
switch_ports: Vec<PortLocation>,
) -> Result<u8, SwitchError> {
todo!("unmanaged switch. Nothing to do.")
todo!("unmanaged switch. Nothing to do.")
}
async fn clear_port_channel(&self, ids: &Vec<Id>) -> Result<(), SwitchError> {
todo!("unmanged switch. Nothing to do.")
}
async fn configure_interface(&self, ports: &Vec<PortConfig>) -> Result<(), SwitchError> {
todo!("unmanged switch. Nothing to do.")
}
}