Commit 38440f6
committed
ip link add: support bond device creation
Introduced support `ip link add NAME type bond [OPTIONS]`.
Accepts all bond options identical to iproute2.
Uses netlink-packet-route FromStr/Display for all bond options
(BondMode, BondArpValidate, BondArpAllTargets, BondPrimaryReselect,
BondFailOverMac, BondAdSelect, BondXmitHashPolicy) via a generic
parse_from_str helper.
Added arp_ip_target, ns_ip6_target, ad_actor_sys_prio,
ad_user_port_key, ad_actor_system display fields.
Includes 7 integration tests for bond creation with various
option combinations.
Signed-off-by: Gris Ge <cnfourt@gmail.com>1 parent 6f4162c commit 38440f6
3 files changed
Lines changed: 434 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
0 commit comments