go.ligato.io/vpp-agent/v3@v3.5.0/tests/robot/suites/sfc/test_controller_start/controller_start.robot (about) 1 *** Settings *** 2 Library OperatingSystem 3 #Library RequestsLibrary 4 #Library SSHLibrary timeout=60s 5 #Library String 6 7 Resource ../../../variables/${VARIABLES}_variables.robot 8 9 Resource ../../../libraries/all_libs.robot 10 11 Force Tags sfc IPv4 12 Suite Setup Testsuite Setup 13 Suite Teardown Suite Cleanup 14 Test Setup TestSetup 15 Test Teardown TestTeardown 16 17 *** Variables *** 18 ${VARIABLES}= common 19 ${ENV}= common 20 21 *** Test Cases *** 22 Configure Environment 23 [Tags] setup 24 Add Agent VPP Node agent_vpp_1 25 Add Agent VPP Node agent_vpp_2 26 ${DATA_FOLDER}= Catenate SEPARATOR=/ ${CURDIR} ${TEST_DATA_FOLDER} 27 Set Suite Variable ${DATA_FOLDER} 28 Start SFC Controller Container With Own Config simple.conf 29 Sleep 15s 30 31 Check Memif Interface On VPP1 32 ${out}= vpp_term: Show Interfaces agent_vpp_1 33 ${int}= Get Interface Internal Name agent_vpp_1 vpp1_memif1 34 Should Contain ${out} ${int} 35 ${out}= Write To Machine agent_vpp_1_term show h 36 Should Contain ${out} 02:02:02:02:02:02 37 38 Check Memif Interface On VPP2 39 ${out}= vpp_term: Show Interfaces agent_vpp_2 40 ${int}= Get Interface Internal Name agent_vpp_2 vpp2_memif1 41 Should Contain ${out} ${int} 42 ${out}= Write To Machine agent_vpp_2_term show int addr 43 Should Contain ${out} 10.0.0.10 44 45 Show Interfaces And Other Objects For Debug 46 [Tags] debug 47 vpp_term: Show Interfaces agent_vpp_1 48 vpp_term: Show Interfaces agent_vpp_2 49 Write To Machine agent_vpp_1_term show int addr 50 Write To Machine agent_vpp_2_term show int addr 51 Write To Machine agent_vpp_1_term show h 52 Write To Machine agent_vpp_2_term show h 53 Write To Machine agent_vpp_1_term show err 54 Write To Machine agent_vpp_2_term show err 55 56 Done 57 [Tags] debug 58 No Operation 59 60 61 *** Keywords *** 62 Suite Cleanup 63 Stop SFC Controller Container 64 Testsuite Teardown 65 66 *** Keywords *** 67 TestSetup 68 Make Datastore Snapshots ${TEST_NAME}_test_setup 69 70 TestTeardown 71 Make Datastore Snapshots ${TEST_NAME}_test_teardown 72