Skip to content

Commit

Permalink
support more than 10 VMs / tap-ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Buehler committed Nov 29, 2019
1 parent e18d6e1 commit 08cc32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/openbsd-vmm/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08cc32e

Please sign in to comment.