Skip to content

Commit

Permalink
fix: unassisted dhcp
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic authored Feb 6, 2023
1 parent 1501a9a commit 9e55438
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/vagrant-zones/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ def get_ip_address(uii)
rsp = []
command = "ip -4 addr show dev #{ vnic_name } | grep -Po 'inet \\K[\\d.]+' \r\n"

loop do
zlogin_read.expect(/\r\n/) { |line| rsp.push line }
puts (rsp[-1]) if config.debug_boot
break if rsp[-1].to_s.match(/#{lcheck}/) || rsp[-1].to_s.match(/#{alcheck}/)
end

if zlogin_read.expect(/#{alcheck}/)
puts ('Logging in to Console')
zlogin_write.printf("#{user(@machine)}\n")
Expand Down

0 comments on commit 9e55438

Please sign in to comment.