Struct netplan_types::EthernetConfig
source · [−]pub struct EthernetConfig {
pub link: Option<String>,
pub virtual_function_count: Option<u16>,
pub embedded_switch_mode: Option<EmbeddedSwitchMode>,
pub delay_virtual_functions_rebind: Option<bool>,
pub common_physical: Option<CommonPropertiesPhysicalDeviceType>,
pub common_all: Option<CommonPropertiesAllDevices>,
}Fields
link: Option<String>(SR-IOV devices only) The link property declares the device as a Virtual Function of the selected Physical Function device, as identified by the given netplan id.
virtual_function_count: Option<u16>(SR-IOV devices only) In certain special cases VFs might need to be configured outside of netplan. For such configurations virtual-function-count can be optionally used to set an explicit number of Virtual Functions for the given Physical Function. If unset, the default is to create only as many VFs as are defined in the netplan configuration. This should be used for special cases only.
embedded_switch_mode: Option<EmbeddedSwitchMode>(SR-IOV devices only) Change the operational mode of the embedded switch of a supported SmartNIC PCI device (e.g. Mellanox ConnectX-5). Possible values are switchdev or legacy, if unspecified the vendor’s default configuration is used.
delay_virtual_functions_rebind: Option<bool>(SR-IOV devices only) Delay rebinding of SR-IOV virtual functions to its driver after changing the embedded-switch-mode setting to a later stage. Can be enabled when bonding/VF LAG is in use. Defaults to false.
common_physical: Option<CommonPropertiesPhysicalDeviceType>Common properties for physical device types
common_all: Option<CommonPropertiesAllDevices>Common properties for all devices
Trait Implementations
sourceimpl Clone for EthernetConfig
impl Clone for EthernetConfig
sourcefn clone(&self) -> EthernetConfig
fn clone(&self) -> EthernetConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for EthernetConfig
impl Debug for EthernetConfig
sourceimpl Default for EthernetConfig
impl Default for EthernetConfig
sourcefn default() -> EthernetConfig
fn default() -> EthernetConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EthernetConfig
impl<'de> Deserialize<'de> for EthernetConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<EthernetConfig> for EthernetConfig
impl PartialEq<EthernetConfig> for EthernetConfig
sourcefn eq(&self, other: &EthernetConfig) -> bool
fn eq(&self, other: &EthernetConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &EthernetConfig) -> bool
fn ne(&self, other: &EthernetConfig) -> bool
This method tests for !=.
sourceimpl Serialize for EthernetConfig
impl Serialize for EthernetConfig
impl Eq for EthernetConfig
impl StructuralEq for EthernetConfig
impl StructuralPartialEq for EthernetConfig
Auto Trait Implementations
impl RefUnwindSafe for EthernetConfig
impl Send for EthernetConfig
impl Sync for EthernetConfig
impl Unpin for EthernetConfig
impl UnwindSafe for EthernetConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more