Skip to content

Commit

Permalink
Attach control bridge to host
Browse files Browse the repository at this point in the history
The flush test requires sending UDP packets to a PDU device.
We will emulate this device on the host, so we need a connection
between client VMs and the host.

Attaching the br_world to the client is bad because a client
can download updates/drivers/applications from the Internet
and spend CPU/RAM resources in vain.

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Oct 3, 2024
1 parent f7ecd7f commit 963fa60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/ns_unshared
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ module AutoHCK
%w[ip link set br_world up],
%w[ip route add default via 10.0.2.2],
%w[ip link add br_ctrl type bridge],
# See HLK-Setup-Scripts IP configuration
# https://github.com/HCK-CI/HLK-Setup-Scripts/blob/master/client.ps1
# need for access to host without full Internet access
%w[ip addr add 192.168.100.100/24 dev br_ctrl],
%w[ip link set br_ctrl up],
%w[ip link add br_test type bridge],
%w[ip link set br_test up]
Expand Down

0 comments on commit 963fa60

Please sign in to comment.