go.ligato.io/vpp-agent/v3@v3.5.0/tests/robot/suites/traffic/3x_vpp_traffic/3x_vpp_traffic.robot (about) 1 *** Settings *** 2 3 Library OperatingSystem 4 #Library String 5 6 Resource ../../../variables/${VARIABLES}_variables.robot 7 8 Resource ../../../libraries/all_libs.robot 9 Resource ../../../libraries/pretty_keywords.robot 10 11 Force Tags traffic IPv4 12 Suite Setup Testsuite Setup 13 Suite Teardown Testsuite Teardown 14 Test Setup TestSetup 15 Test Teardown TestTeardown 16 17 *** Variables *** 18 ${VARIABLES}= common 19 ${ENV}= common 20 ${WAIT_TIMEOUT}= 20s 21 ${SYNC_SLEEP}= 3s 22 23 *** Test Cases *** 24 Configure Environment 1 25 [Tags] setup 26 Add Agent VPP Node agent_vpp_1 27 Add Agent VPP Node agent_vpp_3 28 Sleep ${WAIT_TIMEOUT} 29 30 31 Create Infs And BD1 On VPP1 32 Create loopback interface bvi_loop0 on agent_vpp_1 with ip 10.1.1.1/24 and mac 8a:f1:be:90:00:00 33 Create Master memif0 on agent_vpp_1 with MAC 02:f1:be:90:00:00, key 1 and m0.sock socket 34 Create Bridge Domain bd1 With Autolearn On agent_vpp_1 with interfaces bvi_loop0, memif0 35 36 Add Intf And Update BD1 On VPP1 37 Create Master memif1 on agent_vpp_1 with MAC 02:f1:be:90:02:00, key 2 and m1.sock socket 38 Create Bridge Domain bd1 With Autolearn On agent_vpp_1 with interfaces bvi_loop0, memif0, memif1 39 40 Create Intfs And BD1 On VPP3 41 Create loopback interface bvi_loop0 on agent_vpp_3 with ip 10.1.1.3/24 and mac 8a:f1:be:90:00:03 42 Create Slave memif0 on agent_vpp_3 with MAC 02:f1:be:90:00:03, key 2 and m1.sock socket 43 Create Bridge Domain bd1 With Autolearn On agent_vpp_3 with interfaces bvi_loop0, memif0 44 45 Ping VPP3 From VPP1 46 Wait Until Keyword Succeeds ${WAIT_TIMEOUT} ${SYNC_SLEEP} Ping from agent_vpp_1 to 10.1.1.3 47 48 Moving Memif1 From BD1 To BD2 on VPP1 49 Create Bridge Domain bd1 With Autolearn On agent_vpp_1 with interfaces bvi_loop0, memif0 50 Sleep 2s 51 Create Bridge Domain bd2 With Autolearn On agent_vpp_1 with interfaces bvi_loop1, memif1, memif2 52 Sleep 2s 53 54 Modify Loopback IP on VPP3 55 Create loopback interface bvi_loop0 on agent_vpp_3 with ip 20.1.1.3/24 and mac 8a:f1:be:90:00:03 56 Sleep 2s 57 vpp_term: Show Interfaces agent_vpp_3 58 59 Modify Loopback IP on VPP3 Back 60 Create loopback interface bvi_loop0 on agent_vpp_3 with ip 10.1.1.3/24 and mac 8a:f1:be:90:00:03 61 Sleep 2s 62 vpp_term: Show Interfaces agent_vpp_3 63 64 Moving Memif1 From BD2 To BD1 on VPP1 65 Create Bridge Domain bd2 With Autolearn On agent_vpp_1 with interfaces bvi_loop1, memif2 66 Create Bridge Domain bd1 With Autolearn On agent_vpp_1 with interfaces bvi_loop0, memif0, memif1 67 68 Ping VPP3 From VPP1 Again 69 Wait Until Keyword Succeeds ${WAIT_TIMEOUT} ${SYNC_SLEEP} Ping from agent_vpp_1 to 10.1.1.3 70 71 *** Keywords *** 72 73 TestSetup 74 Make Datastore Snapshots ${TEST_NAME}_test_setup 75 76 TestTeardown 77 Make Datastore Snapshots ${TEST_NAME}_test_teardown