pub struct VrfsConfig {
pub table: i32,
pub interfaces: Vec<String>,
pub common_all: Option<CommonPropertiesAllDevices>,
}Expand description
Purpose: Use the vrfs key to create Virtual Routing and Forwarding (VRF) interfaces.
Structure: The key consists of a mapping of VRF interface names. The interface used in the link option (enp5s0 in the example below) must also be defined in the Netplan configuration. The general configuration structure for VRFs is shown below.
Fields§
§table: i32The numeric routing table identifier. This setting is compulsory.
interfaces: Vec<String>All devices matching this ID list will be added to the VRF. This may be an empty list, in which case the VRF will be brought online with no member interfaces.
common_all: Option<CommonPropertiesAllDevices>Common properties for all devices
Trait Implementations§
Source§impl Clone for VrfsConfig
impl Clone for VrfsConfig
Source§fn clone(&self) -> VrfsConfig
fn clone(&self) -> VrfsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VrfsConfig
impl Debug for VrfsConfig
Source§impl Default for VrfsConfig
impl Default for VrfsConfig
Source§fn default() -> VrfsConfig
fn default() -> VrfsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VrfsConfig
impl<'de> Deserialize<'de> for VrfsConfig
Source§fn 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
Source§impl PartialEq for VrfsConfig
impl PartialEq for VrfsConfig
Source§impl Serialize for VrfsConfig
impl Serialize for VrfsConfig
impl Eq for VrfsConfig
impl StructuralPartialEq for VrfsConfig
Auto Trait Implementations§
impl Freeze for VrfsConfig
impl RefUnwindSafe for VrfsConfig
impl Send for VrfsConfig
impl Sync for VrfsConfig
impl Unpin for VrfsConfig
impl UnwindSafe for VrfsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more