fix
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 21 Feb 2022 17:00:01 +0000 (18:00 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 21 Feb 2022 17:00:01 +0000 (18:00 +0100)
lbuild-initvm.sh

index b9f0358..b8615d7 100755 (executable)
@@ -1009,7 +1009,7 @@ function main () {
         GUEST_IP=$(gethostbyname $GUEST_HOSTNAME)
         # use same NETMASK as bridge interface br0
         MASKLEN=$(ip addr show $PUBLIC_BRIDGE | grep -v inet6 | grep inet | awk '{print $2;}' | cut -d/ -f2)
-        NETMASK=$(masklen_to_netmask $masklen)
+        NETMASK=$(masklen_to_netmask $MASKLEN)
         GATEWAY=$(ip route show | grep default | awk '{print $3}' | head -1)
         VIF_HOST="vif$(echo $GUEST_HOSTNAME | cut -d. -f1)"
     fi