forked from NationTech/harmony
Compare commits
1 Commits
feat/unman
...
fix/opnsen
| Author | SHA1 | Date | |
|---|---|---|---|
| 8effc14592 |
@@ -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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ pub struct System {
|
|||||||
pub maximumfrags: Option<MaybeString>,
|
pub maximumfrags: Option<MaybeString>,
|
||||||
pub aliasesresolveinterval: Option<MaybeString>,
|
pub aliasesresolveinterval: Option<MaybeString>,
|
||||||
pub maximumtableentries: Option<MaybeString>,
|
pub maximumtableentries: Option<MaybeString>,
|
||||||
pub language: String,
|
pub language: Option<String>,
|
||||||
pub dnsserver: Option<MaybeString>,
|
pub dnsserver: Option<MaybeString>,
|
||||||
pub dns1gw: Option<String>,
|
pub dns1gw: Option<String>,
|
||||||
pub dns2gw: Option<String>,
|
pub dns2gw: Option<String>,
|
||||||
|
|||||||
Reference in New Issue
Block a user