• Ido Schimmel's avatar
    selftests: forwarding: Delete IPv6 address at the end · 65cb1398
    Ido Schimmel authored
    When creating the second host in h2_create(), two addresses are assigned
    to the interface, but only one is deleted. When running the test twice
    in a row the following error is observed:
    
    $ ./router_bridge_vlan.sh
    TEST: ping                                                          [ OK ]
    TEST: ping6                                                         [ OK ]
    TEST: vlan                                                          [ OK ]
    $ ./router_bridge_vlan.sh
    RTNETLINK answers: File exists
    TEST: ping                                                          [ OK ]
    TEST: ping6                                                         [ OK ]
    TEST: vlan                                                          [ OK ]
    
    Fix this by deleting the address during cleanup.
    
    Fixes: 5b1e7f9e ("selftests: forwarding: Test routed bridge interface")
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    65cb1398
router_bridge_vlan.sh 2.06 KB