Skip to content

Commit

Permalink
selftests: bridge_igmp: Remove unnecessary address deletion
Browse files Browse the repository at this point in the history
The test group address is added and removed in v2reportleave_test().
There is no need to delete it again during cleanup as it results in the
following error message:

 # bash -x ./bridge_igmp.sh
 [...]
 + cleanup
 + pre_cleanup
 [...]
 + ip address del dev swp4 239.10.10.10/32
 RTNETLINK answers: Cannot assign requested address
 + h2_destroy

Solve by removing the unnecessary address deletion.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ido Schimmel authored and David S. Miller committed Oct 19, 2022
1 parent 6fb1faa commit b526b2e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/testing/selftests/net/forwarding/bridge_igmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ cleanup()

switch_destroy

# Always cleanup the mcast group
ip address del dev $h2 $TEST_GROUP/32 2>&1 1>/dev/null

h2_destroy
h1_destroy

Expand Down

0 comments on commit b526b2e

Please sign in to comment.