X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Finterfaces.robot;h=55d0a3d844ac2a28787903df5ed4771f46f91679;hb=a0a1bdba6245c685898bab5007de28452bbd2d27;hp=29698dddb04b682647194fae17b375d4fb79b377;hpb=3e664d4a46aecf847659df2fe3d2572697b582a7;p=csit.git diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index 29698dddb0..55d0a3d844 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -252,14 +252,14 @@ | | ... | | ${dut_str}= | Convert To Lowercase | ${dut} | | :FOR | ${id} | IN RANGE | 1 | ${count} + 1 -| | | ${if1_vlan}= | Run Keyword If | ${${dut_str}_vlan1} -| | | ... | Set Variable | ${${dut_str}_vlan1} -| | | ... | ELSE -| | | ... | Evaluate | ${100} + ${id} - ${1} -| | | ${if2_vlan}= | Run Keyword If | ${${dut_str}_vlan2} -| | | ... | Set Variable | ${${dut_str}_vlan2} -| | | ... | ELSE -| | | ... | Evaluate | ${200} + ${id} - ${1} +| | | ${if1_vlan}= | Get Variable Value | \${${dut_str}_vlan1} +| | | ${default}= | Evaluate | ${100} + ${id} - ${1} +| | | ${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}= | Set Variable If | '${if2_vlan}' == '${NONE}' +| | | ... | ${default} | ${if2_vlan} | | | ${if1_name} | ${if1_index}= | Run Keyword If | | | ... | ${create} or ${id} == ${1} | | | ... | Create Vlan Subinterface