• Andrea Righi's avatar
    selftests: net: test_vxlan_under_vrf: fix HV connectivity test · e7e4785f
    Andrea Righi authored
    
    
    It looks like test_vxlan_under_vrf.sh is always failing to verify the
    connectivity test during the ping between the two simulated VMs.
    
    This is due to the fact that veth-hv in each VM should have a distinct
    MAC address.
    
    Fix by setting a unique MAC address on each simulated VM interface.
    
    Without this fix:
    
     $ sudo ./tools/testing/selftests/net/test_vxlan_under_vrf.sh
     Checking HV connectivity                                           [ OK ]
     Check VM connectivity through VXLAN (underlay in the default VRF)  [FAIL]
    
    With this fix applied:
    
     $ sudo ./tools/testing/selftests/net/test_vxlan_under_vrf.sh
     Checking HV connectivity                                           [ OK ]
     Check VM connectivity through VXLAN (underlay in the default VRF)  [ OK ]
     Check VM connectivity through VXLAN (underlay in a VRF)            [FAIL]
    
    NOTE: the connectivity test with the underlay VRF is still failing; it
    seems that ARP requests are blocked at the simulated hypervisor level,
    probably due to some missing ARP forwarding rules. This requires more
    investigation (in the meantime we may consider to set that test as
    expected failure - XFAIL).
    Signed-off-by: default avatarAndrea Righi <andrea.righi@canonical.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e7e4785f
test_vxlan_under_vrf.sh 5.47 KB