Skip to content

Commit

Permalink
tests: lxc-test-usernic: use iproute tool instead of brctl
Browse files Browse the repository at this point in the history
This is required to fix autopkgtest failures.

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
  • Loading branch information
mihalicyn committed Feb 15, 2024
1 parent 09b830d commit 627bb94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/lxc-test-usernic.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ cleanup() {
sed -i '/usernic-user/d' /run/lxc/nics /etc/lxc/lxc-usernet
ip link set usernic-br0 down
ip link set usernic-br1 down
brctl delbr usernic-br0
brctl delbr usernic-br1
ip link del usernic-br0
ip link del usernic-br1

run_cmd "lxc-stop -n b1 -k"
pkill -u $(id -u usernic-user) -9
Expand Down Expand Up @@ -84,8 +84,8 @@ mkdir -p /run/user/$(id -u usernic-user)
chown -R usernic-user: /run/user/$(id -u usernic-user) /home/usernic-user

# Create two test bridges
brctl addbr usernic-br0
brctl addbr usernic-br1
ip link add name usernic-br0 type bridge
ip link add name usernic-br1 type bridge
ip link set usernic-br0 up
ip link set usernic-br1 up

Expand Down

0 comments on commit 627bb94

Please sign in to comment.