go.ligato.io/vpp-agent/v3@v3.5.0/tests/robot/suites/traffic/l2xconnect_traffic/l2xconnect_trafic.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 ${SYNC_SLEEP}= 3s 21 22 *** Test Cases *** 23 Configure Environment 1 24 [Tags] setup 25 Add Agent VPP Node agent_vpp_1 26 #Add Agent VPP Node agent_vpp_2 27 Add Agent VPP Node agent_vpp_3 28 Sleep ${SYNC_SLEEP} 29 30 Create 2 Loopbacks And Memifs And BD On VPP1 31 Create loopback interface bvi_loop0 on agent_vpp_1 with ip 10.1.1.1/24 and mac 8a:f1:be:90:00:00 32 Create Master memif0 on agent_vpp_1 with MAC 02:f1:be:90:02:00, key 2 and m1.sock socket 33 Create Bridge Domain bd1 With Autolearn On agent_vpp_1 with interfaces bvi_loop0, memif0 34 Create VRF Table node=agent_vpp_1 id=20 protocol=ipv4 35 Put Loopback Interface With IP node=agent_vpp_1 name=bvi_loop1 mac=8a:f1:be:90:01:00 ip=10.1.1.100 prefix=24 vrf=20 enabled=true 36 Put Memif Interface node=agent_vpp_1 name=memif1 mac=02:f1:be:90:03:00 master=true id=3 socket=m2.sock vrf=20 37 Create Bridge Domain bd2 With Autolearn On agent_vpp_1 with interfaces bvi_loop1, memif1 38 39 40 Create 2 Memifs On VPP3 41 Create Slave memif0 on agent_vpp_3 with MAC 02:f1:be:90:00:03, key 2 and m1.sock socket 42 Create VRF Table node=agent_vpp_3 id=20 protocol=ipv4 43 Put Memif Interface node=agent_vpp_3 name=memif1 mac=02:f1:be:90:03:03 master=false id=3 socket=m2.sock vrf=20 44 45 46 Ping Loopback1 X Loopback2 47 vpp_term: Check No Ping Within Interface agent_vpp_1 10.1.1.100 loop0 10 48 vpp_term: Check No Ping Within Interface agent_vpp_1 10.1.1.1 loop1 10 49 50 Add L2XConnect for Memif1 and Memif2 On VPP3 51 Put L2XConnect agent_vpp_3 memif0 memif1 52 Put L2XConnect agent_vpp_3 memif1 memif0 53 54 Add Trace for Memif 55 vpp_term: Add Trace Memif agent_vpp_1 56 vpp_term: Add Trace Memif agent_vpp_3 57 58 Check Memif1 and Memif2 in XConnect mode on VPP3 59 ${out}= vpp_term: Show Interface Mode agent_vpp_3 60 Should Contain ${out} l2 xconnect memif1/2 memif2/3 61 Should Contain ${out} l2 xconnect memif2/3 memif1/2 62 63 Ping Loopback1 -> Loopback2 64 vpp_term: Check Ping Within Interface agent_vpp_1 10.1.1.100 loop0 10 65 66 Ping Loopback2 -> Loopback1 67 vpp_term: Check Ping Within Interface agent_vpp_1 10.1.1.1 loop1 10 68 69 Show Traces 70 vpp_term: Show Trace agent_vpp_1 71 vpp_term: Show Trace agent_vpp_3 72 73 *** Keywords *** 74 75 TestSetup 76 Make Datastore Snapshots ${TEST_NAME}_test_setup 77 78 TestTeardown 79 Make Datastore Snapshots