From 08cc32ec0d73f15eb11488636483451e1a24a2c9 Mon Sep 17 00:00:00 2001 From: Philipp Buehler Date: Fri, 29 Nov 2019 18:33:09 +0100 Subject: [PATCH] support more than 10 VMs / tap-ifs --- builder/openbsd-vmm/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/openbsd-vmm/driver.go b/builder/openbsd-vmm/driver.go index 8bcbba8..65de14e 100644 --- a/builder/openbsd-vmm/driver.go +++ b/builder/openbsd-vmm/driver.go @@ -144,7 +144,7 @@ func (d *vmmDriver) GetTapIPAddress(id string) (string, error) { stdoutString := strings.TrimSpace(stdout.String()) log.Printf("ifconfig: %s", stdoutString) // XXX works on OpenBSD 6.6, but ugly - vmctl := regexp.MustCompile(`description:\s(\w+\d).*\n.*\n.*\n.*\n.*inet (\d+\.\d+\.\d+\.\d+)`) + vmctl := regexp.MustCompile(`description:\s(\w+\d+).*\n.*\n.*\n.*\n.*inet (\d+\.\d+\.\d+\.\d+)`) resultarr := vmctl.FindAllStringSubmatch(stdoutString, -1) // in case of multiple tap interfaces, loop into the result in order // to find the one we started