[dts] [PATCH] framework: Fix a wrong parameter in traffic_generator_loss().

Liu, Yong yong.liu at intel.com
Mon May 23 22:50:44 CEST 2016


Applied, thanks.

> -----Original Message-----
> From: Rosen, Rami
> Sent: Monday, May 16, 2016 12:22 PM
> To: Liu, Yong
> Cc: dts at dpdk.org; Rosen, Rami
> Subject: [PATCH] framework: Fix a wrong parameter in
> traffic_generator_loss().
> 
> This patch fixes a wrong parameter in traffic_generator_loss() method,
> in framework/tester.py. Using the existing ratePercenti parameter will
> cause
> this error: "NameError: global name 'ratePercenti' is not defined".
> Instead of ratePercenti it should be ratePercent.
> 
> Signed-off-by: Rami Rosen <rami.rosen at intel.com>
> ---
>  framework/tester.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/framework/tester.py b/framework/tester.py
> index 76ceeb4..63f19e9 100644
> --- a/framework/tester.py
> +++ b/framework/tester.py
> @@ -489,7 +489,7 @@ class Tester(Crb):
>          elif not self.check_port_list(portList):
>              self.logger.warning("exception by mixed port types")
>              return None
> -        return self.packet_gen.loss(portList, ratePercenti, delay)
> +        return self.packet_gen.loss(portList, ratePercent, delay)
> 
>      def traffic_generator_latency(self, portList, ratePercent=100,
> delay=5):
>          """
> --
> 2.4.3



More information about the dts mailing list