Struct nmstate::VrfInterface
source · #[non_exhaustive]pub struct VrfInterface {
pub base: BaseInterface,
pub vrf: Option<VrfConfig>,
}
Expand description
Linux kernel Virtual Routing and Forwarding(VRF) interface. The example yaml output of a crate::NetworkState with a VRF interface would be:
interfaces:
- name: vrf0
type: vrf
state: up
mac-address: 42:6C:4A:0B:A3:C0
mtu: 65575
min-mtu: 1280
max-mtu: 65575
wait-ip: any
ipv4:
enabled: false
ipv6:
enabled: false
accept-all-mac-addresses: false
vrf:
port:
- eth1
- eth2
route-table-id: 100
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.base: BaseInterface
§vrf: Option<VrfConfig>
Implementations§
Trait Implementations§
source§impl Clone for VrfInterface
impl Clone for VrfInterface
source§fn clone(&self) -> VrfInterface
fn clone(&self) -> VrfInterface
Returns a copy 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 VrfInterface
impl Debug for VrfInterface
source§impl Default for VrfInterface
impl Default for VrfInterface
source§impl<'de> Deserialize<'de> for VrfInterface
impl<'de> Deserialize<'de> for VrfInterface
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<VrfInterface> for VrfInterface
impl PartialEq<VrfInterface> for VrfInterface
source§fn eq(&self, other: &VrfInterface) -> bool
fn eq(&self, other: &VrfInterface) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VrfInterface
impl Serialize for VrfInterface
impl Eq for VrfInterface
impl StructuralEq for VrfInterface
impl StructuralPartialEq for VrfInterface
Auto Trait Implementations§
impl RefUnwindSafe for VrfInterface
impl Send for VrfInterface
impl Sync for VrfInterface
impl Unpin for VrfInterface
impl UnwindSafe for VrfInterface
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.