We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c16a2d commit eb68537Copy full SHA for eb68537
3 files changed
Cargo.toml
@@ -23,7 +23,7 @@ futures-channel = "0.3.11"
23
log = "0.4.8"
24
thiserror = "1"
25
netlink-sys = { version = "0.8" }
26
-netlink-packet-route = { version = "0.28" }
+netlink-packet-route = { version = "0.29" }
27
netlink-packet-core = { version = "0.8" }
28
netlink-proto = { default-features = false, version = "0.12.0" }
29
nix = { version = "0.30.0", default-features = false, features = ["fs", "mount", "sched", "signal"] }
src/link/bond.rs
@@ -5,9 +5,9 @@ use std::net::{Ipv4Addr, Ipv6Addr};
5
use crate::{
6
link::LinkMessageBuilder,
7
packet_route::link::{
8
- BondAllPortActive, BondArpAllTargets, BondArpValidate, BondFailOverMac,
9
- BondLacpRate, BondMode, BondPrimaryReselect, BondXmitHashPolicy,
10
- InfoBond, InfoData, InfoKind,
+ BondAdSelect, BondAllPortActive, BondArpAllTargets, BondArpValidate,
+ BondFailOverMac, BondLacpRate, BondMode, BondPrimaryReselect,
+ BondXmitHashPolicy, InfoBond, InfoData, InfoKind,
11
},
12
};
13
@@ -218,7 +218,7 @@ impl LinkMessageBuilder<LinkBond> {
218
/// Adds the `ad_select` attribute to the bond
219
/// This is equivalent to `ip link add name NAME type bond ad_select
220
/// AD_SELECT`.
221
- pub fn ad_select(self, ad_select: u8) -> Self {
+ pub fn ad_select(self, ad_select: BondAdSelect) -> Self {
222
self.append_info_data(InfoBond::AdSelect(ad_select))
223
}
224
src/link/bridge_port.rs
@@ -148,7 +148,7 @@ impl LinkMessageBuilder<LinkBridgePort> {
148
/// `ip link set name NAME type bridge_slave \
149
/// neigh_vlan_suppress { on | off }`.
150
pub fn neigh_vlan_suppress(self, v: bool) -> Self {
151
- self.append_info_data(InfoBridgePort::NeighVlanSupress(v))
+ self.append_info_data(InfoBridgePort::NeighVlanSuppress(v))
152
153
154
/// This is equivalent to
0 commit comments