diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-08-20 09:51:54 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-08-21 09:07:41 +0000 |
commit | 6439d919a421c823a93e5d4789554a45ddcdf5eb (patch) | |
tree | e1f8f0a4ba549f47138d43796d1dfa90fda05568 /resources/libraries/robot/shared | |
parent | 5fe08ea21f16d1a24ac82d990c48d212d312b4f9 (diff) |
Add: avf-dot1q testcases
+ Few fixes in doc
+ Align testcases
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I5575db8255a74fd46f37d5cc2637b9b4448bcd7f
(cherry picked from commit a0a1bdba6245c685898bab5007de28452bbd2d27)
Diffstat (limited to 'resources/libraries/robot/shared')
-rw-r--r-- | resources/libraries/robot/shared/interfaces.robot | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index e249cd5d4e..55d0a3d844 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -252,10 +252,14 @@ | | ... | | ${dut_str}= | Convert To Lowercase | ${dut} | | :FOR | ${id} | IN RANGE | 1 | ${count} + 1 +| | | ${if1_vlan}= | Get Variable Value | \${${dut_str}_vlan1} | | | ${default}= | Evaluate | ${100} + ${id} - ${1} -| | | ${if1_vlan}= | Get Variable Value | \${${dut_str}_vlan1} | ${default} +| | | ${if1_vlan}= | Set Variable If | '${if1_vlan}' == '${NONE}' +| | | ... | ${default} | ${if1_vlan} +| | | ${if2_vlan}= | Get Variable Value | \${${dut_str}_vlan2} | | | ${default}= | Evaluate | ${200} + ${id} - ${1} -| | | ${if2_vlan}= | Get Variable Value | \${${dut_str}_vlan2} | ${default} +| | | ${if2_vlan}= | Set Variable If | '${if2_vlan}' == '${NONE}' +| | | ... | ${default} | ${if2_vlan} | | | ${if1_name} | ${if1_index}= | Run Keyword If | | | ... | ${create} or ${id} == ${1} | | | ... | Create Vlan Subinterface |