forked from NationTech/harmony
Compare commits
14 Commits
feat/unman
...
fix-bond-c
| Author | SHA1 | Date | |
|---|---|---|---|
| 13eb13f01a | |||
| 77dae13cba | |||
| 1d5ef24844 | |||
| c166351d8b | |||
| 7fe15ffa24 | |||
| c89c30e8f2 | |||
| 148504439e | |||
| ca026e1d9e | |||
| 325d7891be | |||
| 4ea1af8d72 | |||
| cab4eb19ed | |||
| b5beda8efe | |||
| 4f7b0541f4 | |||
| adc14c052d |
@@ -113,37 +113,6 @@ impl SwitchClient for BrocadeSwitchClient {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct UnmanagedSwitch;
|
||||
|
||||
impl UnmanagedSwitch {
|
||||
pub async fn init( ) -> Result<Self, ()> {
|
||||
Ok(Self)
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl SwitchClient for UnmanagedSwitch {
|
||||
async fn setup(&self) -> Result<(), SwitchError> {
|
||||
todo!("unmanaged switch. Nothing to do.")
|
||||
}
|
||||
|
||||
async fn find_port(
|
||||
&self,
|
||||
mac_address: &MacAddress,
|
||||
) -> Result<Option<PortLocation>, SwitchError> {
|
||||
todo!("unmanaged switch. Nothing to do.")
|
||||
}
|
||||
|
||||
async fn configure_port_channel(
|
||||
&self,
|
||||
channel_name: &str,
|
||||
switch_ports: Vec<PortLocation>,
|
||||
) -> Result<u8, SwitchError> {
|
||||
todo!("unmanaged switch. Nothing to do.")
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
Reference in New Issue
Block a user