From d68951ac245150eeefa6e0f4156e4c1b5c9e9325 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Tue, 12 Nov 2019 05:27:43 +0100 Subject: Python3: resources and libraries Change-Id: I1392c06b1d64f62b141d24c0d42a8e36913b15e2 Signed-off-by: Jan Gelety --- .../robot/performance/performance_limits.robot | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'resources/libraries/robot/performance/performance_limits.robot') diff --git a/resources/libraries/robot/performance/performance_limits.robot b/resources/libraries/robot/performance/performance_limits.robot index a80ca2f8d5..82688ac9c6 100644 --- a/resources/libraries/robot/performance/performance_limits.robot +++ b/resources/libraries/robot/performance/performance_limits.robot @@ -21,19 +21,19 @@ | | [Documentation] | | ... | Framesize can be either integer in case of a single packet | | ... | in stream, or set of packets in case of IMIX type or simmilar. -| | ... +| | | | ... | *Arguments:* | | ... | - frame_size - Framesize. Type: integer or string -| | ... +| | | | ... | *Returns:* | | ... | Average frame size. Type: float -| | ... +| | | | ... | *Example:* -| | ... +| | | | ... | \| Get Average Frame Size \| IMIX_v4_1 \| -| | ... +| | | | [Arguments] | ${frame_size} -| | ... +| | | | Return From Keyword If | '${frame_size}' == 'IMIX_v4_1' | ${353.83333} | | ${frame_size} = | Convert To Number | ${frame_size} | | Return From Keyword | ${frame_size} @@ -50,31 +50,31 @@ | | ... | whitelisted NIC names. | | ... | The mapping is hardcoded in nic_limits.yaml | | ... | TODO: Make the mapping from NIC names case insensistive. -| | ... +| | | | ... | TODO: Make pps limit also definable per NIC. -| | ... +| | | | ... | This keyword computes maximal unidirectional transmit rate | | ... | and jumbo boolean (some suites need that for configuration decisions). | | ... | To streamline suite autogeneration, both input and output values | | ... | are communicated as test (or broader scope) variables, | | ... | instead of explicit arguments and return values. -| | ... +| | | | ... | *Test (or broader scope) variables read:* -| | ... | - nic_name - Name of bottleneck NIC. Type: string -| | ... | - overhead - Overhead in bytes. Default: 0. Type: integer -| | ... | - frame_size - L2 Frame Size [B] or IMIX string. Type: int or str -| | ... +| | ... | - nic_name - Name of bottleneck NIC. Type: string +| | ... | - overhead - Overhead in bytes. Default: 0. Type: integer +| | ... | - frame_size - L2 Frame Size [B] or IMIX string. Type: int or str +| | | | ... | *Test variables set:* -| | ... | - max_rate - Calculated unidirectional maximal transmit rate [pps]. -| | ... | Type: float -| | ... | - jumbo - Jumbo boolean, true if jumbo packet support -| | ... | has to be enabled. Type: boolean -| | ... +| | ... | - max_rate - Calculated unidirectional maximal transmit rate [pps]. +| | ... | Type: float +| | ... | - jumbo - Jumbo boolean, true if jumbo packet support has to be +| | ... | enabled. Type: boolean +| | | | ... | *Example:* -| | ... +| | | | ... | \| Set test Variable \| \${frame_size} \| IMIX_v4_1 \| | | ... | \| Set Max Rate And Jumbo \| -| | ... +| | | | # Negative overhead is possible, if DUT-DUT traffic is less encapsulated | | # than TG-DUT traffic. | | # TODO: Re-check overhead values in suites with both traffics encapsulated. -- cgit 1.2.3-korg