@@ -46,12 +46,12 @@ impl BondAddRequest {
46
46
self
47
47
}
48
48
49
- /// Adds the `active_slave ` attribute to the bond, where `active_slave `
49
+ /// Adds the `active_port ` attribute to the bond, where `active_port `
50
50
/// is the ifindex of an interface attached to the bond.
51
51
/// This is equivalent to `ip link add name NAME type bond active_slave
52
- /// ACTIVE_SLAVE_NAME `.
53
- pub fn active_slave ( mut self , active_slave : u32 ) -> Self {
54
- self . info_data . push ( InfoBond :: ActivePort ( active_slave ) ) ;
52
+ /// ACTIVE_PORT_NAME `.
53
+ pub fn active_port ( mut self , active_port : u32 ) -> Self {
54
+ self . info_data . push ( InfoBond :: ActivePort ( active_port ) ) ;
55
55
self
56
56
}
57
57
@@ -161,12 +161,12 @@ impl BondAddRequest {
161
161
self
162
162
}
163
163
164
- /// Adds the `all_slaves_active ` attribute to the bond
164
+ /// Adds the `all_ports_active ` attribute to the bond
165
165
/// This is equivalent to `ip link add name NAME type bond all_slaves_active
166
- /// ALL_SLAVES_ACTIVE `.
167
- pub fn all_slaves_active ( mut self , all_slaves_active : u8 ) -> Self {
166
+ /// ALL_PORTS_ACTIVE `.
167
+ pub fn all_ports_active ( mut self , all_ports_active : u8 ) -> Self {
168
168
self . info_data
169
- . push ( InfoBond :: AllPortsActive ( all_slaves_active ) ) ;
169
+ . push ( InfoBond :: AllPortsActive ( all_ports_active ) ) ;
170
170
self
171
171
}
172
172
@@ -186,12 +186,12 @@ impl BondAddRequest {
186
186
self
187
187
}
188
188
189
- /// Adds the `packets_per_slave ` attribute to the bond
189
+ /// Adds the `packets_per_port ` attribute to the bond
190
190
/// This is equivalent to `ip link add name NAME type bond packets_per_slave
191
- /// PACKETS_PER_SLAVE `.
192
- pub fn packets_per_slave ( mut self , packets_per_slave : u32 ) -> Self {
191
+ /// PACKETS_PER_PORT `.
192
+ pub fn packets_per_port ( mut self , packets_per_port : u32 ) -> Self {
193
193
self . info_data
194
- . push ( InfoBond :: PacketsPerPort ( packets_per_slave ) ) ;
194
+ . push ( InfoBond :: PacketsPerPort ( packets_per_port ) ) ;
195
195
self
196
196
}
197
197
0 commit comments