Struct rtnetlink::BondAddRequest
source · pub struct BondAddRequest { /* private fields */ }Implementations§
source§impl BondAddRequest
impl BondAddRequest
sourcepub fn mode(self, mode: u8) -> Self
pub fn mode(self, mode: u8) -> Self
Adds the mode attribute to the bond
This is equivalent to ip link add name NAME type bond mode MODE.
pub fn active_slave(self, active_port: u32) -> Self
active_port insteadsourcepub fn active_port(self, active_port: u32) -> Self
pub fn active_port(self, active_port: u32) -> Self
Adds the active_port attribute to the bond, where active_port
is the ifindex of an interface attached to the bond.
This is equivalent to ip link add name NAME type bond active_slave ACTIVE_PORT_NAME.
sourcepub fn miimon(self, miimon: u32) -> Self
pub fn miimon(self, miimon: u32) -> Self
Adds the miimon attribute to the bond
This is equivalent to ip link add name NAME type bond miimon MIIMON.
sourcepub fn updelay(self, updelay: u32) -> Self
pub fn updelay(self, updelay: u32) -> Self
Adds the updelay attribute to the bond
This is equivalent to ip link add name NAME type bond updelay UPDELAY.
sourcepub fn downdelay(self, downdelay: u32) -> Self
pub fn downdelay(self, downdelay: u32) -> Self
Adds the downdelay attribute to the bond
This is equivalent to ip link add name NAME type bond downdelay DOWNDELAY.
sourcepub fn use_carrier(self, use_carrier: u8) -> Self
pub fn use_carrier(self, use_carrier: u8) -> Self
Adds the use_carrier attribute to the bond
This is equivalent to ip link add name NAME type bond use_carrier USE_CARRIER.
sourcepub fn arp_interval(self, arp_interval: u32) -> Self
pub fn arp_interval(self, arp_interval: u32) -> Self
Adds the arp_interval attribute to the bond
This is equivalent to ip link add name NAME type bond arp_interval ARP_INTERVAL.
sourcepub fn arp_validate(self, arp_validate: u32) -> Self
pub fn arp_validate(self, arp_validate: u32) -> Self
Adds the arp_validate attribute to the bond
This is equivalent to ip link add name NAME type bond arp_validate ARP_VALIDATE.
sourcepub fn arp_all_targets(self, arp_all_targets: u32) -> Self
pub fn arp_all_targets(self, arp_all_targets: u32) -> Self
Adds the arp_all_targets attribute to the bond
This is equivalent to ip link add name NAME type bond arp_all_targets ARP_ALL_TARGETS
sourcepub fn primary(self, primary: u32) -> Self
pub fn primary(self, primary: u32) -> Self
Adds the primary attribute to the bond, where primary is the ifindex
of an interface.
This is equivalent to ip link add name NAME type bond primary PRIMARY_NAME
sourcepub fn primary_reselect(self, primary_reselect: u8) -> Self
pub fn primary_reselect(self, primary_reselect: u8) -> Self
Adds the primary_reselect attribute to the bond
This is equivalent to ip link add name NAME type bond primary_reselect PRIMARY_RESELECT.
sourcepub fn fail_over_mac(self, fail_over_mac: u8) -> Self
pub fn fail_over_mac(self, fail_over_mac: u8) -> Self
Adds the fail_over_mac attribute to the bond
This is equivalent to ip link add name NAME type bond fail_over_mac FAIL_OVER_MAC.
sourcepub fn xmit_hash_policy(self, xmit_hash_policy: u8) -> Self
pub fn xmit_hash_policy(self, xmit_hash_policy: u8) -> Self
Adds the xmit_hash_policy attribute to the bond
This is equivalent to ip link add name NAME type bond xmit_hash_policy XMIT_HASH_POLICY.
sourcepub fn resend_igmp(self, resend_igmp: u32) -> Self
pub fn resend_igmp(self, resend_igmp: u32) -> Self
Adds the resend_igmp attribute to the bond
This is equivalent to ip link add name NAME type bond resend_igmp RESEND_IGMP.
sourcepub fn num_peer_notif(self, num_peer_notif: u8) -> Self
pub fn num_peer_notif(self, num_peer_notif: u8) -> Self
Adds the num_peer_notif attribute to the bond
This is equivalent to ip link add name NAME type bond num_peer_notif NUM_PEER_NOTIF.
pub fn all_slaves_active(self, all_ports_active: u8) -> Self
all_ports_active insteadsourcepub fn all_ports_active(self, all_ports_active: u8) -> Self
pub fn all_ports_active(self, all_ports_active: u8) -> Self
Adds the all_ports_active attribute to the bond
This is equivalent to ip link add name NAME type bond all_slaves_active ALL_PORTS_ACTIVE.
sourcepub fn min_links(self, min_links: u32) -> Self
pub fn min_links(self, min_links: u32) -> Self
Adds the min_links attribute to the bond
This is equivalent to ip link add name NAME type bond min_links MIN_LINKS.
sourcepub fn lp_interval(self, lp_interval: u32) -> Self
pub fn lp_interval(self, lp_interval: u32) -> Self
Adds the lp_interval attribute to the bond
This is equivalent to ip link add name NAME type bond lp_interval LP_INTERVAL.
sourcepub fn packets_per_port(self, packets_per_port: u32) -> Self
pub fn packets_per_port(self, packets_per_port: u32) -> Self
Adds the packets_per_port attribute to the bond
This is equivalent to ip link add name NAME type bond packets_per_slave PACKETS_PER_PORT.
sourcepub fn ad_lacp_rate(self, ad_lacp_rate: u8) -> Self
pub fn ad_lacp_rate(self, ad_lacp_rate: u8) -> Self
Adds the ad_lacp_rate attribute to the bond
This is equivalent to ip link add name NAME type bond ad_lacp_rate AD_LACP_RATE.
sourcepub fn ad_select(self, ad_select: u8) -> Self
pub fn ad_select(self, ad_select: u8) -> Self
Adds the ad_select attribute to the bond
This is equivalent to ip link add name NAME type bond ad_select AD_SELECT.
sourcepub fn ad_actor_sys_prio(self, ad_actor_sys_prio: u16) -> Self
pub fn ad_actor_sys_prio(self, ad_actor_sys_prio: u16) -> Self
Adds the ad_actor_sys_prio attribute to the bond
This is equivalent to ip link add name NAME type bond ad_actor_sys_prio AD_ACTOR_SYS_PRIO.
sourcepub fn ad_user_port_key(self, ad_user_port_key: u16) -> Self
pub fn ad_user_port_key(self, ad_user_port_key: u16) -> Self
Adds the ad_user_port_key attribute to the bond
This is equivalent to ip link add name NAME type bond ad_user_port_key AD_USER_PORT_KEY.
sourcepub fn ad_actor_system(self, ad_actor_system: [u8; 6]) -> Self
pub fn ad_actor_system(self, ad_actor_system: [u8; 6]) -> Self
Adds the ad_actor_system attribute to the bond
This is equivalent to ip link add name NAME type bond ad_actor_system AD_ACTOR_SYSTEM.
sourcepub fn tlb_dynamic_lb(self, tlb_dynamic_lb: u8) -> Self
pub fn tlb_dynamic_lb(self, tlb_dynamic_lb: u8) -> Self
Adds the tlb_dynamic_lb attribute to the bond
This is equivalent to ip link add name NAME type bond tlb_dynamic_lb TLB_DYNAMIC_LB.
sourcepub fn peer_notif_delay(self, peer_notif_delay: u32) -> Self
pub fn peer_notif_delay(self, peer_notif_delay: u32) -> Self
Adds the peer_notif_delay attribute to the bond
This is equivalent to ip link add name NAME type bond peer_notif_delay PEER_NOTIF_DELAY.
sourcepub fn ad_lacp_active(self, ad_lacp_active: u8) -> Self
pub fn ad_lacp_active(self, ad_lacp_active: u8) -> Self
Adds the ad_lacp_active attribute to the bond
This is equivalent to ip link add name NAME type bond ad_lacp_active AD_LACP_ACTIVE.
sourcepub fn missed_max(self, missed_max: u8) -> Self
pub fn missed_max(self, missed_max: u8) -> Self
Adds the missed_max attribute to the bond
This is equivalent to ip link add name NAME type bond missed_max MISSED_MAX.
sourcepub fn arp_ip_target(self, arp_ip_target: Vec<Ipv4Addr>) -> Self
pub fn arp_ip_target(self, arp_ip_target: Vec<Ipv4Addr>) -> Self
Adds the arp_ip_target attribute to the bond
This is equivalent to ip link add name NAME type bond arp_ip_target LIST.
sourcepub fn ns_ip6_target(self, ns_ip6_target: Vec<Ipv6Addr>) -> Self
pub fn ns_ip6_target(self, ns_ip6_target: Vec<Ipv6Addr>) -> Self
Adds the ns_ip6_target attribute to the bond
This is equivalent to ip link add name NAME type bond ns_ip6_target LIST.