X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Finterfaces.robot;h=e249cd5d4ec5e14cee6ed02f414672f649eba7cf;hp=29698dddb04b682647194fae17b375d4fb79b377;hb=5fe08ea21f16d1a24ac82d990c48d212d312b4f9;hpb=c45663ee4021100a1639e5e8b03d7dbe4b07a3af diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index 29698dddb0..e249cd5d4e 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -252,14 +252,10 @@ | | ... | | ${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} +| | | ${default}= | Evaluate | ${100} + ${id} - ${1} +| | | ${if1_vlan}= | Get Variable Value | \${${dut_str}_vlan1} | ${default} +| | | ${default}= | Evaluate | ${200} + ${id} - ${1} +| | | ${if2_vlan}= | Get Variable Value | \${${dut_str}_vlan2} | ${default} | | | ${if1_name} | ${if1_index}= | Run Keyword If | | | ... | ${create} or ${id} == ${1} | | | ... | Create Vlan Subinterface