X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Ftesting_path.robot;h=ec0c856c817566b4e45681d57061068e6d803de4;hp=b7543e1c4dc76bcaba642b921df18927231c4ff6;hb=f9041bcdc886ba08800fe11c32e218d98ef6ed33;hpb=6190dd3186cf42543c2c5cd2406c7f4c8f3f2845 diff --git a/resources/libraries/robot/shared/testing_path.robot b/resources/libraries/robot/shared/testing_path.robot index b7543e1c4d..ec0c856c81 100644 --- a/resources/libraries/robot/shared/testing_path.robot +++ b/resources/libraries/robot/shared/testing_path.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2016 Cisco and/or its affiliates. +# Copyright (c) 2018 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -329,7 +329,7 @@ | | ... | - No value returned. | | ... | | ... | _NOTE:_ This KW uses test variables sets in -| | ... | "Configure path in double-link 3-node circular topology" KW. +| | ... | "Configure path in double-link 3-node circular topology" KW. | | ... | | ... | *Example:* | | ... @@ -350,4 +350,31 @@ | | Set Interface State | ${dut2_node} | ${dut2_to_dut1_if1} | up | | Set Interface State | ${dut2_node} | ${dut2_to_dut1_if2} | up | | Vpp Node Interfaces Ready Wait | ${dut1_node} -| | Vpp Node Interfaces Ready Wait | ${dut2_node} \ No newline at end of file +| | Vpp Node Interfaces Ready Wait | ${dut2_node} + +| Set interfaces in path up +| | [Documentation] +| | ... | Set UP state on interfaces in 2-node or 3-node path on nodes and \ +| | ... | wait until all interfaces are ready. +| | ... +| | ... | *Arguments:* +| | ... | - No arguments. +| | ... +| | ... | *Return:* +| | ... | - No value returned. +| | ... +| | ... | _NOTE:_ This KW uses test variables sets in\ +| | ... | "Configure path in 2-node circular topology" or\ +| | ... | "Configure path in 3-node circular topology" KW. +| | ... +| | ... | *Example:* +| | ... +| | ... | \| Set interfaces in path up \| +| | ... +| | ${dut2_status} | ${value}= | Run Keyword And Ignore Error +| | ... | Variable Should Exist | ${dut2} +| | ... +| | Run Keyword If | '${dut2_status}' == 'PASS' +| | ... | Set interfaces in 3-node circular topology up +| | ... | ELSE +| | ... | Set interfaces in 2-node circular topology up