go.ligato.io/vpp-agent/v3@v3.5.0/tests/robot/suites/trafficIPv6/physical_int_traffic/physical_int_trafficIPv6.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  Resource     ../../libraries/interface/vxlan.robot
    11  
    12  Force Tags        traffic     IPv6    ExpectedFailure
    13  Suite Setup       Testsuite Setup
    14  Suite Teardown    Testsuite Teardown
    15  
    16  *** Variables ***
    17  ${VARIABLES}=          common
    18  ${ENV}=                common
    19  ${CONFIG_SLEEP}=       1s
    20  ${RESYNC_SLEEP}=       1s
    21  # wait for resync vpps after restart
    22  ${RESYNC_WAIT}=        30s
    23  ${IP_1}=         fd30::1:a:0:0:1
    24  ${IP_2}=         fd30::1:a:0:0:2
    25  ${IP_3}=         fd31::1:a:0:0:1
    26  ${IP_4}=         fd31::1:a:0:0:2
    27  ${IP_5}=         fd32::1:a:0:0:1
    28  ${IP_6}=         fd33::1:a:0:0:1
    29  
    30  *** Test Cases ***
    31  Configure Environment
    32      [Tags]    setup
    33      ${phys_ints}=    Create List    1
    34      Add Agent VPP Node With Physical Int    agent_vpp_1    ${phys_ints}
    35      ${phys_ints}=    Create List    2
    36      Add Agent VPP Node With Physical Int    agent_vpp_2    ${phys_ints}
    37  
    38  Show Interfaces Before Setup
    39      vpp_term: Show Interfaces    agent_vpp_1
    40      vpp_term: Show Interfaces    agent_vpp_2
    41  
    42  Setup Interfaces
    43      Put Physical Interface With IP    node=agent_vpp_1    name=GigabitEthernet0/9/0    ip=${IP_1}
    44  #    Put Memif Interface With IP    node=agent_vpp_1    name=vpp1_memif1    mac=62:61:61:61:61:61    master=true    id=1    ip=${IP_1}
    45  ##    Put Veth Interface With IP    node=agent_vpp_1    name=vpp1_veth1    mac=12:11:11:11:11:11    peer=vpp1_veth2    ip=${IP_3}
    46  ##    Put Veth Interface    node=agent_vpp_1    name=vpp1_veth2    mac=12:12:12:12:12:12    peer=vpp1_veth1
    47  ##    Put Afpacket Interface    node=agent_vpp_1    name=vpp1_afpacket1    mac=a2:a1:a1:a1:a1:a1    host_int=vpp1_veth2
    48  ##    Put VXLan Interface    node=agent_vpp_1    name=vpp1_vxlan1    src=${IP_1}    dst=${IP_2}    vni=5
    49  ##    @{ints}=    Create List    vpp1_vxlan1    vpp1_afpacket1
    50  ##    Put Bridge Domain    node=agent_vpp_1    name=vpp1_bd1    ints=${ints}
    51  ##    Put Loopback Interface With IP    node=agent_vpp_1    name=vpp1_loop1    mac=12:21:21:11:11:11    ip=20.20.1.1
    52  ##    Put TAP Interface With IP    node=agent_vpp_1    name=vpp1_tap1    mac=32:21:21:11:11:11    ip=30.30.1.1    host_if_name=linux_vpp1_tap1
    53  
    54      Put Physical Interface With IP    node=agent_vpp_2    name=GigabitEthernet0/a/0    ip=${IP_2}
    55  #    Put Memif Interface With IP    node=agent_vpp_2    name=vpp2_memif1    mac=62:62:62:62:62:62    master=false    id=1    ip=${IP_2}
    56      Put Veth Interface With IP    node=agent_vpp_2    name=vpp2_veth1    mac=22:21:21:21:21:21    peer=vpp2_veth2    ip=${IP_4}
    57      Put Veth Interface    node=agent_vpp_2    name=vpp2_veth2    mac=22:22:22:22:22:22    peer=vpp2_veth1
    58      Put Afpacket Interface    node=agent_vpp_2    name=vpp2_afpacket1    mac=a2:a2:a2:a2:a2:a2    host_int=vpp2_veth2
    59      Put VXLan Interface    node=agent_vpp_2    name=vpp2_vxlan1    src=${IP_2}    dst=${IP_1}    vni=5
    60      @{ints}=    Create List    vpp2_vxlan1    vpp2_afpacket1
    61      Put Bridge Domain    node=agent_vpp_2    name=vpp2_bd1    ints=${ints}
    62      Put Loopback Interface With IP    node=agent_vpp_2    name=vpp2_loop1    mac=22:21:21:11:11:11    ip=${IP_5}
    63      Put TAPv2 Interface With IP    node=agent_vpp_2    name=vpp2_tap1    mac=32:22:22:11:11:11    ip=${IP_6}    host_if_name=linux_vpp2_tap1
    64   
    65  Check Linux Interfaces On VPP1
    66      ${out}=    Execute In Container    agent_vpp_1    ip a
    67      Should Contain    ${out}    vpp1_veth2@vpp1_veth1
    68      Should Contain    ${out}    vpp1_veth1@vpp1_veth2
    69      Should Contain    ${out}    linux_vpp1_tap1
    70  
    71  Check Interfaces On VPP1
    72      ${out}=    vpp_term: Show Interfaces    agent_vpp_1
    73  #    ${int}=    Get Interface Internal Name    agent_vpp_1    vpp1_memif1
    74  #    Should Contain    ${out}    ${int}
    75      ${int}=    Get Interface Internal Name    agent_vpp_1    vpp1_afpacket1
    76      Should Contain    ${out}    ${int}
    77      ${int}=    Get Interface Internal Name    agent_vpp_1    vpp1_vxlan1
    78      Should Contain    ${out}    ${int}
    79      ${int}=    Get Interface Internal Name    agent_vpp_1    vpp1_loop1
    80      Should Contain    ${out}    ${int}
    81      ${int}=    Get Interface Internal Name    agent_vpp_1    vpp1_tap1
    82      Should Contain    ${out}    ${int}
    83      ${int}=    Get Interface Internal Name    agent_vpp_1    GigabitEthernet0/9/0
    84      Should Contain    ${out}    ${int}
    85  
    86  Check Linux Interfaces On VPP2
    87      ${out}=    Execute In Container    agent_vpp_2    ip a
    88      Should Contain    ${out}    vpp2_veth2@vpp2_veth1
    89      Should Contain    ${out}    vpp2_veth1@vpp2_veth2
    90      Should Contain    ${out}    linux_vpp2_tap1            
    91  
    92  Check Interfaces On VPP2
    93      ${out}=    vpp_term: Show Interfaces    agent_vpp_2
    94  #   ${int}=    Get Interface Internal Name    agent_vpp_2    vpp2_memif1
    95  #    Should Contain    ${out}    ${int}
    96      ${int}=    Get Interface Internal Name    agent_vpp_2    vpp2_afpacket1
    97      Should Contain    ${out}    ${int}
    98      ${int}=    Get Interface Internal Name    agent_vpp_2    vpp2_vxlan1
    99      Should Contain    ${out}    ${int}
   100      ${int}=    Get Interface Internal Name    agent_vpp_2    vpp2_loop1
   101      Should Contain    ${out}    ${int}
   102      ${int}=    Get Interface Internal Name    agent_vpp_2    vpp2_tap1
   103      Should Contain    ${out}    ${int}
   104      ${int}=    Get Interface Internal Name    agent_vpp_2    GigabitEthernet0/a/0
   105      Should Contain    ${out}    ${int}
   106  
   107  Show Interfaces And Other Objects After Config
   108      vpp_term: Show Interfaces    agent_vpp_1
   109      vpp_term: Show Interfaces    agent_vpp_2            
   110      Write To Machine    agent_vpp_1_term    show int addr
   111      Write To Machine    agent_vpp_2_term    show int addr
   112      Write To Machine    agent_vpp_1_term    show h
   113      Write To Machine    agent_vpp_2_term    show h
   114      Write To Machine    agent_vpp_1_term    show br
   115      Write To Machine    agent_vpp_2_term    show br
   116      Write To Machine    agent_vpp_1_term    show br 1 detail
   117      Write To Machine    agent_vpp_2_term    show br 1 detail
   118      Write To Machine    agent_vpp_1_term    show vxlan tunnel
   119      Write To Machine    agent_vpp_2_term    show vxlan tunnel
   120      Write To Machine    agent_vpp_1_term    show err     
   121      Write To Machine    agent_vpp_2_term    show err     
   122      vat_term: Interfaces Dump    agent_vpp_1
   123      vat_term: Interfaces Dump    agent_vpp_2
   124      Execute In Container    agent_vpp_1    ip a
   125      Execute In Container    agent_vpp_2    ip a
   126  
   127  Check Ping From VPP1 to VPP2
   128      linux: Check Ping    agent_vpp_1    ${IP_4}
   129  
   130  Check Ping From VPP2 to VPP1
   131      linux: Check Ping    agent_vpp_2    ${IP_3}
   132  
   133  fdsasdf
   134  #    Delete VPP Interface    node=agent_vpp_1    name=${DOCKER_PHYSICAL_INT_1_VPP_NAME}
   135  #    Delete VPP Interface    node=agent_vpp_2    name=${DOCKER_PHYSICAL_INT_2_VPP_NAME}
   136      sleep    5
   137      vpp_term: Show Interfaces    agent_vpp_1
   138      vpp_term: Show Interfaces    agent_vpp_2
   139      Write To Machine    agent_vpp_1_term    show int addr
   140      Write To Machine    agent_vpp_2_term    show int addr
   141  
   142  
   143  Config Done
   144      No Operation
   145  
   146  Final Sleep After Config For Manual Checking
   147      Sleep   ${CONFIG_SLEEP}
   148  
   149  Remove VPP Nodes
   150      Remove All Nodes
   151  
   152  Start VPP1 And VPP2 Again
   153      ${phys_ints}=    Create List    1
   154      Add Agent VPP Node With Physical Int    agent_vpp_1    ${phys_ints}
   155      ${phys_ints}=    Create List    2
   156      Add Agent VPP Node With Physical Int    agent_vpp_2    ${phys_ints}
   157      Sleep    ${RESYNC_WAIT}
   158  
   159  Show Interfaces And Other Objects After Resync
   160      vpp_term: Show Interfaces    agent_vpp_1
   161      vpp_term: Show Interfaces    agent_vpp_2  
   162      Write To Machine    agent_vpp_1_term    show int addr
   163      Write To Machine    agent_vpp_2_term    show int addr
   164      Write To Machine    agent_vpp_1_term    show h
   165      Write To Machine    agent_vpp_2_term    show h
   166      Write To Machine    agent_vpp_1_term    show br
   167      Write To Machine    agent_vpp_2_term    show br
   168      Write To Machine    agent_vpp_1_term    show br 1 detail
   169      Write To Machine    agent_vpp_2_term    show br 1 detail
   170      Write To Machine    agent_vpp_1_term    show vxlan tunnel
   171      Write To Machine    agent_vpp_2_term    show vxlan tunnel
   172      Write To Machine    agent_vpp_1_term    show err
   173      Write To Machine    agent_vpp_2_term    show err
   174      vat_term: Interfaces Dump    agent_vpp_1
   175      vat_term: Interfaces Dump    agent_vpp_2
   176      Execute In Container    agent_vpp_1    ip a
   177      Execute In Container    agent_vpp_2    ip a
   178  
   179  Check Ping After Resync From VPP1 to VPP2
   180      linux: Check Ping    agent_vpp_1    ${IP_4}
   181  
   182  Check Ping After Resync From VPP2 to VPP1
   183      linux: Check Ping    agent_vpp_2    ${IP_3}
   184  
   185  asdf
   186      Delete VPP Interface    node=agent_vpp_1    name=${DOCKER_PHYSICAL_INT_1_VPP_NAME}
   187      Delete VPP Interface    node=agent_vpp_2    name=${DOCKER_PHYSICAL_INT_2_VPP_NAME}
   188      sleep    5
   189      vpp_term: Show Interfaces    agent_vpp_1
   190      vpp_term: Show Interfaces    agent_vpp_2
   191      Write To Machine    agent_vpp_1_term    show int addr
   192      Write To Machine    agent_vpp_2_term    show int addr
   193  
   194  
   195  Resync Done
   196      No Operation
   197  
   198  Final Sleep After Resync For Manual Checking
   199      Sleep   ${RESYNC_SLEEP}
   200  
   201  
   202  *** Keywords ***