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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.