Struct netplan_types::OpenVSwitchConfig
source · [−]pub struct OpenVSwitchConfig {
pub external_ids: Option<String>,
pub other_config: Option<String>,
pub lacp: Option<Lacp>,
pub fail_mode: Option<FailMode>,
pub mcast_snooping: Option<bool>,
pub protocols: Option<Vec<OpenFlowProtocol>>,
pub rtsp: Option<bool>,
pub controller: Option<ControllerConfig>,
pub ports: Option<Vec<String>>,
pub ssl: Option<SslConfig>,
}Expand description
This provides additional configuration for the network device for openvswitch. If openvswitch is not available on the system, netplan treats the presence of openvswitch configuration as an error.
Any supported network device that is declared with the openvswitch mapping (or any bond/bridge that includes an interface with an openvswitch configuration) will be created in openvswitch instead of the defined renderer. In the case of a vlan definition declared the same way, netplan will create a fake VLAN bridge in openvswitch with the requested vlan properties.
Fields
external_ids: Option<String>Passed-through directly to OpenVSwitch
other_config: Option<String>Passed-through directly to OpenVSwitch
lacp: Option<Lacp>Valid for bond interfaces. Accepts active, passive or off (the default).
fail_mode: Option<FailMode>Valid for bridge interfaces. Accepts secure or standalone (the default).
mcast_snooping: Option<bool>Valid for bridge interfaces. False by default.
protocols: Option<Vec<OpenFlowProtocol>>Valid for bridge interfaces or the network section. List of protocols to be used when negotiating a connection with the controller. Accepts OpenFlow10, OpenFlow11, OpenFlow12, OpenFlow13, OpenFlow14, OpenFlow15 and OpenFlow16.
rtsp: Option<bool>Valid for bridge interfaces. False by default.
controller: Option<ControllerConfig>Valid for bridge interfaces. Specify an external OpenFlow controller.
ports: Option<Vec<String>>OpenvSwitch patch ports. Each port is declared as a pair of names which can be referenced as interfaces in dependent virtual devices (bonds, bridges).
ssl: Option<SslConfig>Valid for global openvswitch settings. Options for configuring SSL server endpoint for the switch.
Trait Implementations
sourceimpl Clone for OpenVSwitchConfig
impl Clone for OpenVSwitchConfig
sourcefn clone(&self) -> OpenVSwitchConfig
fn clone(&self) -> OpenVSwitchConfig
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 OpenVSwitchConfig
impl Debug for OpenVSwitchConfig
sourceimpl Default for OpenVSwitchConfig
impl Default for OpenVSwitchConfig
sourcefn default() -> OpenVSwitchConfig
fn default() -> OpenVSwitchConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OpenVSwitchConfig
impl<'de> Deserialize<'de> for OpenVSwitchConfig
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<OpenVSwitchConfig> for OpenVSwitchConfig
impl PartialEq<OpenVSwitchConfig> for OpenVSwitchConfig
sourcefn eq(&self, other: &OpenVSwitchConfig) -> bool
fn eq(&self, other: &OpenVSwitchConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OpenVSwitchConfig) -> bool
fn ne(&self, other: &OpenVSwitchConfig) -> bool
This method tests for !=.
sourceimpl Serialize for OpenVSwitchConfig
impl Serialize for OpenVSwitchConfig
impl Eq for OpenVSwitchConfig
impl StructuralEq for OpenVSwitchConfig
impl StructuralPartialEq for OpenVSwitchConfig
Auto Trait Implementations
impl RefUnwindSafe for OpenVSwitchConfig
impl Send for OpenVSwitchConfig
impl Sync for OpenVSwitchConfig
impl Unpin for OpenVSwitchConfig
impl UnwindSafe for OpenVSwitchConfig
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