Enum nmstate::BondFailOverMac
source · #[non_exhaustive]pub enum BondFailOverMac {
None,
Active,
Follow,
}
Expand description
The fail_over_mac
kernel bond option: Specifies whether active-backup mode
should set all ports to the same MAC address at port attachment (the
traditional behavior), or, when enabled, perform special handling of the
bond’s MAC address in accordance with the selected policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
This setting disables fail_over_mac, and causes bonding to set all
ports of an active-backup bond to the same MAC address at attachment
time.
Serialize to none
.
Deserialize from 0 or none
.
Active
The “active” fail_over_mac policy indicates that the MAC address of the
bond should always be the MAC address of the currently active port.
The MAC address of the ports is not changed; instead, the MAC address
of the bond changes during a failover.
Serialize to active
.
Deserialize from 1 or active
.
Follow
The “follow” fail_over_mac policy causes the MAC address of the bond to
be selected normally (normally the MAC address of the first port added
to the bond). However, the second and subsequent ports are not set to
this MAC address while they are in a backup role; a port is programmed
with the bond’s MAC address at failover time (and the formerly active
port receives the newly active port’s MAC address).
Serialize to follow
.
Deserialize from 2 or follow
.
Implementations§
source§impl BondFailOverMac
impl BondFailOverMac
pub fn serialize<__S>(
__self: &BondFailOverMac,
__serializer: __S
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
source§impl<'de> BondFailOverMac
impl<'de> BondFailOverMac
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BondFailOverMac, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
source§impl Clone for BondFailOverMac
impl Clone for BondFailOverMac
source§fn clone(&self) -> BondFailOverMac
fn clone(&self) -> BondFailOverMac
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BondFailOverMac
impl Debug for BondFailOverMac
source§impl<'de> Deserialize<'de> for BondFailOverMac
impl<'de> Deserialize<'de> for BondFailOverMac
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>,
source§impl Display for BondFailOverMac
impl Display for BondFailOverMac
source§impl PartialEq for BondFailOverMac
impl PartialEq for BondFailOverMac
source§fn eq(&self, other: &BondFailOverMac) -> bool
fn eq(&self, other: &BondFailOverMac) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BondFailOverMac
impl Serialize for BondFailOverMac
impl Copy for BondFailOverMac
impl Eq for BondFailOverMac
impl StructuralPartialEq for BondFailOverMac
Auto Trait Implementations§
impl Freeze for BondFailOverMac
impl RefUnwindSafe for BondFailOverMac
impl Send for BondFailOverMac
impl Sync for BondFailOverMac
impl Unpin for BondFailOverMac
impl UnwindSafe for BondFailOverMac
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.