aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot/shared
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-10-18 14:15:32 +0000
committerPeter Mikus <pmikus@cisco.com>2019-10-19 04:41:03 +0000
commitfcc77752111a4fbe8caa341cf5249efbad305a2a (patch)
treedafa71db46e5ede25d50a45fd48ad3ec25bb617c /resources/libraries/robot/shared
parent510f6d5140db4512ff00a43bf5b8d2ddd1f4a064 (diff)
Tests: Introduce driver layer
+ Small bugfixes in various suites Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I051af0a6da7340fe3f617400370c3846ca5241ab
Diffstat (limited to 'resources/libraries/robot/shared')
-rw-r--r--resources/libraries/robot/shared/interfaces.robot42
1 files changed, 32 insertions, 10 deletions
diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot
index 514ed91a5b..86ae61d3a4 100644
--- a/resources/libraries/robot/shared/interfaces.robot
+++ b/resources/libraries/robot/shared/interfaces.robot
@@ -138,9 +138,40 @@
| | Set Test Variable | ${prev_layer} | if
| | Set interfaces in path up
+| Initialize layer driver
+| | [Documentation]
+| | ... | Initialize driver based interfaces on each DUT. Interfaces are
+| | ... | brought up.
+| | ...
+| | [Arguments] | ${driver}
+| | ...
+# TODO: Introduce the Pre- Initialize layer driver for preparing driver before
+# VPP starts and then Post- Initialize layer driver for preparing interfaces
+# after VPP starts. This way we can control actions needed for proper handling
+# of various driver-based interfaces in VPP.
+| | :FOR | ${dut} | IN | @{duts}
+| | | Run Keyword | Initialize layer ${driver} on node | ${dut}
+| | Set Test Variable | ${prev_layer} | vf
+| | Set interfaces in path up
+
+| Initialize layer vfio-pci on node
+| | [Documentation]
+| | ... | Initialize vfio-pci interfaces on DUT.
+| | ...
+| | ... | *Arguments:*
+| | ... | - dut - DUT node. Type: string
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Initialize layer vfio-pci on node \| DUT1 \|
+| | ...
+| | [Arguments] | ${dut}
+| | ...
+| | No operation
+
| Initialize layer avf on node
| | [Documentation]
-| | ... | Initialize AVF interfaces on DUT. Interfaces are brought up.
+| | ... | Initialize AVF interfaces on DUT.
| | ...
| | ... | *Arguments:*
| | ... | - dut - DUT node. Type: string
@@ -173,15 +204,6 @@
| | Set Test Variable | ${${dut_str}_if1_mac} | ${dut_eth_vf_if1_mac}
| | Set Test Variable | ${${dut_str}_if2_mac} | ${dut_eth_vf_if2_mac}
-| Initialize AVF interfaces
-| | [Documentation]
-| | ... | Initialize AVF interfaces on each DUT. Interfaces are brought up.
-| | ...
-| | :FOR | ${dut} | IN | @{duts}
-| | | Initialize layer avf on node | ${dut}
-| | Set Test Variable | ${prev_layer} | vf
-| | Set interfaces in path up
-
| Initialize layer bonding on node
| | [Documentation]
| | ... | Bonded interface and variables to be created on across east and