feat(brocade): Add feature and example to remove port channel and configure switchport

This commit is contained in:
2025-11-10 22:59:37 -05:00
parent 755a4b7749
commit 43b04edbae
14 changed files with 286 additions and 39 deletions

View File

@@ -1,5 +1,7 @@
use std::{fmt, str::FromStr};
use serde::Serialize;
/// Simple error type for port parsing failures.
#[derive(Debug)]
pub enum PortParseError {
@@ -21,7 +23,7 @@ impl fmt::Display for PortParseError {
/// Represents the atomic, physical location of a switch port: `<Stack>/<Module>/<Port>`.
///
/// Example: `1/1/1`
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Serialize)]
pub struct PortLocation(pub u8, pub u8, pub u8);
impl fmt::Display for PortLocation {