pub struct ApplyPortEntry {
pub index: u32,
pub name: Option<String>,
pub mode: Option<String>,
pub native_network_id: Option<String>,
pub tagged_network_ids: Option<Vec<String>>,
pub tagged_all: Option<bool>,
pub poe: Option<String>,
pub speed: Option<String>,
pub reset: bool,
}Expand description
Per-port override for ApplyPortsRequest.
Splice semantics: every field except index is optional. Missing fields
leave the existing override value untouched. tagged_network_ids: Some([]) clears the tagged list (JSON Merge Patch); None leaves it
alone.
Fields§
§index: u321-based port index (required). Matches port_idx on the wire.
name: Option<String>User-facing port label.
mode: Option<String>Operational mode. Accepts "access", "trunk", or "mirror".
native_network_id: Option<String>Native (untagged) network — accepts a Session _id UUID or a
network name. The handler resolves names against the cached
network list. Aliased as native_vlan for ergonomics.
tagged_network_ids: Option<Vec<String>>Tagged networks for trunk ports. Some(vec![]) clears the list;
None leaves the existing list untouched. Each entry is a
Session _id UUID or network name. Aliased as tagged_vlans.
tagged_all: Option<bool>Whether this trunk port carries all VLANs (the controller’s
“auto” tagged-VLAN mode). Mutually exclusive with
tagged_network_ids — the handler validates.
poe: Option<String>PoE mode. Accepts "on", "off", "auto", "pasv24",
"passthrough". ("on" maps to PoeMode::Auto — same as the
--poe CLI flag.)
speed: Option<String>Configured link speed. Accepts "auto", "10", "100",
"1000", "2500", "5000", "10000".
reset: boolIf true, drop this port’s entry from port_overrides entirely
— returning the port to controller defaults. All other fields on
this entry are ignored when reset is true.
Trait Implementations§
Source§impl Clone for ApplyPortEntry
impl Clone for ApplyPortEntry
Source§fn clone(&self) -> ApplyPortEntry
fn clone(&self) -> ApplyPortEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more