Struct 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§

Source§

impl Clone for OpenVSwitchConfig

Source§

fn clone(&self) -> OpenVSwitchConfig

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OpenVSwitchConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OpenVSwitchConfig

Source§

fn default() -> OpenVSwitchConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for OpenVSwitchConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OpenVSwitchConfig

Source§

fn eq(&self, other: &OpenVSwitchConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OpenVSwitchConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for OpenVSwitchConfig

Source§

impl StructuralPartialEq for OpenVSwitchConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,