Skip to content

Commit eb68537

Browse files
committed
Use netlink-packet-route 0.29.0
Signed-off-by: Gris Ge <fge@redhat.com>
1 parent 7c16a2d commit eb68537

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ futures-channel = "0.3.11"
2323
log = "0.4.8"
2424
thiserror = "1"
2525
netlink-sys = { version = "0.8" }
26-
netlink-packet-route = { version = "0.28" }
26+
netlink-packet-route = { version = "0.29" }
2727
netlink-packet-core = { version = "0.8" }
2828
netlink-proto = { default-features = false, version = "0.12.0" }
2929
nix = { version = "0.30.0", default-features = false, features = ["fs", "mount", "sched", "signal"] }

src/link/bond.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use std::net::{Ipv4Addr, Ipv6Addr};
55
use crate::{
66
link::LinkMessageBuilder,
77
packet_route::link::{
8-
BondAllPortActive, BondArpAllTargets, BondArpValidate, BondFailOverMac,
9-
BondLacpRate, BondMode, BondPrimaryReselect, BondXmitHashPolicy,
10-
InfoBond, InfoData, InfoKind,
8+
BondAdSelect, BondAllPortActive, BondArpAllTargets, BondArpValidate,
9+
BondFailOverMac, BondLacpRate, BondMode, BondPrimaryReselect,
10+
BondXmitHashPolicy, InfoBond, InfoData, InfoKind,
1111
},
1212
};
1313

@@ -218,7 +218,7 @@ impl LinkMessageBuilder<LinkBond> {
218218
/// Adds the `ad_select` attribute to the bond
219219
/// This is equivalent to `ip link add name NAME type bond ad_select
220220
/// AD_SELECT`.
221-
pub fn ad_select(self, ad_select: u8) -> Self {
221+
pub fn ad_select(self, ad_select: BondAdSelect) -> Self {
222222
self.append_info_data(InfoBond::AdSelect(ad_select))
223223
}
224224

src/link/bridge_port.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl LinkMessageBuilder<LinkBridgePort> {
148148
/// `ip link set name NAME type bridge_slave \
149149
/// neigh_vlan_suppress { on | off }`.
150150
pub fn neigh_vlan_suppress(self, v: bool) -> Self {
151-
self.append_info_data(InfoBridgePort::NeighVlanSupress(v))
151+
self.append_info_data(InfoBridgePort::NeighVlanSuppress(v))
152152
}
153153

154154
/// This is equivalent to

0 commit comments

Comments
 (0)