redfish_codegen/models/ethernet_interface/v1_10_0/
team_mode.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum TeamMode {
6    /// No teaming.
7    None,
8    /// Packets are transmitted in sequential order from the teamed interfaces.
9    RoundRobin,
10    /// One interface in the team is active and the others are kept in standby until a failure occurs.
11    ActiveBackup,
12    /// Transmitting is determined based upon a hash policy.
13    XOR,
14    /// Packets are transmitted on all interfaces in the team.
15    Broadcast,
16    /// The interfaces in the team create an IEEE802.3ad link aggregation group.
17    #[serde(rename = "IEEE802_3ad")]
18    IEEE8023,
19    /// Packets are transmitted based upon the current load of each interface in the team.
20    AdaptiveTransmitLoadBalancing,
21    /// Packets are transmitted and received based upon the current load of each interface in the team.
22    AdaptiveLoadBalancing,
23}
24
25#[allow(clippy::derivable_impls)]
26impl Default for TeamMode {
27     fn default() -> TeamMode {
28        TeamMode::None
29     }
30}
31
32impl crate::Metadata<'static> for TeamMode {
33    const JSON_SCHEMA: &'static str = "EthernetInterface.v1_10_0.json";
34}