22"""
33Interface Speed Duplex (Copper)
44
5- Verify that auto-negotiation results in expected speed/duplex mode.
5+ Verify that the interface operates at the expected speed/duplex in two scenarios:
6+
7+ 1. Fixed configuration – host and target are both manually set to a specific speed/duplex
8+ 2. Auto-negotiation – host advertises selectable modes and the target negotiates
9+ to the highest common speed/duplex.
610"""
711
812import infamy
@@ -164,22 +168,22 @@ def cleanup(target, hdata, tdata):
164168 ns .addip ("10.0.0.1" )
165169
166170 # Fixed mode tests
167- with test .step ("Set fixed 10/full" ):
171+ with test .step ("Verify fixed 10/full" ):
168172 set_host_speed_duplex (hdata , 10 , "full" )
169173 set_target_speed_duplex (target , tdata , 10 , "full" )
170174 verify_speed_duplex (target , ns , tdata , 10 , "full" )
171175
172- with test .step ("Set fixed 10/half" ):
176+ with test .step ("Verify fixed 10/half" ):
173177 set_host_speed_duplex (hdata , 10 , "half" )
174178 set_target_speed_duplex (target , tdata , 10 , "half" )
175179 verify_speed_duplex (target , ns , tdata , 10 , "half" )
176180
177- with test .step ("Set fixed 100/full" ):
181+ with test .step ("Verify fixed 100/full" ):
178182 set_host_speed_duplex (hdata , 100 , "full" )
179183 set_target_speed_duplex (target , tdata , 100 , "full" )
180184 verify_speed_duplex (target , ns , tdata , 100 , "full" )
181185
182- with test .step ("Set fixed 100/half" ):
186+ with test .step ("Verify fixed 100/half" ):
183187 set_host_speed_duplex (hdata , 100 , "half" )
184188 set_target_speed_duplex (target , tdata , 100 , "half" )
185189 verify_speed_duplex (target , ns , tdata , 100 , "half" )
@@ -189,27 +193,27 @@ def cleanup(target, hdata, tdata):
189193 enable_host_autoneg (hdata )
190194 enable_target_autoneg (target , tdata )
191195
192- with test .step ("Configure host to advertise 10/Full only" ):
196+ with test .step ("Verify auto-negotiation to 10/Full only" ):
193197 advertise_host_modes (hdata , ["10full" ])
194198 verify_speed_duplex (target , ns , tdata , 10 , "full" )
195199
196- with test .step ("Configure host to advertise 10/Half only" ):
200+ with test .step ("Verify auto-negotiation to 10/Half only" ):
197201 advertise_host_modes (hdata , ["10half" ])
198202 verify_speed_duplex (target , ns , tdata , 10 , "half" )
199203
200- with test .step ("Configure host to advertise 100/Full only" ):
204+ with test .step ("Verify auto-negotiation to 100/Full only" ):
201205 advertise_host_modes (hdata , ["100full" ])
202206 verify_speed_duplex (target , ns , tdata , 100 , "full" )
203207
204- with test .step ("Configure host to advertise 100/Half only" ):
208+ with test .step ("Verify auto-negotiation to 100/Half only" ):
205209 advertise_host_modes (hdata , ["100half" ])
206210 verify_speed_duplex (target , ns , tdata , 100 , "half" )
207211
208- with test .step ("Configure host to advertise 10/half + 10/full + 100/half" ):
212+ with test .step ("Verify auto-negotiation to 10/half + 10/full + 100/half" ):
209213 advertise_host_modes (hdata , ["10half" , "10full" , "100half" ])
210214 verify_speed_duplex (target , ns , tdata , 100 , "half" )
211215
212- with test .step ("Configure host to advertise 10/half + 10/full + 100/half + 100/full + 1000/full" ):
216+ with test .step ("Verify auto-negotiation to 10/half + 10/full + 100/half + 100/full + 1000/full" ):
213217 advertise_host_modes (hdata , ["10half" , "10full" , "100half" , "100full" , "1000full" ])
214218 verify_speed_duplex (target , ns , tdata , 1000 , "full" )
215219
0 commit comments