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