]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
ts-xen-install: Fix bridge setup, ask to copy MAC addr
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 29 Jan 2024 12:06:25 +0000 (12:06 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 18 Mar 2024 16:09:57 +0000 (16:09 +0000)
This ask to copy the MAC address from $physif on the bridge.

On Debian Bookworm, when running as a Xen guest for nested tests, the
bridge does get a random MAC address and a different IP address from
DHCP than before setting up the bridge, so the test fails.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
ts-xen-install

index 3a913fce50035cf17493603a7e392c4a84414dcc..645d8a79468bf36de12e947ebe7208aa0b9eea7f 100755 (executable)
@@ -312,6 +312,9 @@ sub ensurebridge () {
     bridge_ports $physif
     bridge_fd 0
     bridge_stp off
+END
+            $bridgex .= <<END if ($ho->{Suite} !~ m/wheezy|jessie|stretch|buster/);
+    bridge_hw $physif
 END
        } else {
            $iface= $physif;