Unloading driver

Check that unloading network driver works fine.

Note

Scenarios: X3-ST02, X3-STR01, X3-STR04, X3-STR05.

  1. Do in a loop iters times:

    • For each iteration (i = 0; i < iters; i++):

      • Set IUT interface UP and/or DOWN as requested by if_status parameter.

      • If if_status == TEST_IF_UP || if_status == TEST_IF_UP_DOWN :

        • If i > 0 :

          • Sleep for a short random period of time after bringing interface UP (and before bringing it DOWN again if it is required) if this is not the first iteration of the loop.

      • Unload the network driver on IUT.

      • Check that it is really unloaded.

      • Load the network driver on IUT.

      • Check that it is really loaded.

Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru

Parameters:

env

Testing environment:

iters

How many times to unload/load the driver.

if_status

Interface status before unloading the driver:

  • down

  • up

  • up_down : first set it UP, then DOWN