|
|
@ -155,7 +155,7 @@ module Vagrant |
|
|
begin |
|
|
begin |
|
|
@bridge = YAML.load(execute("network", "show", "vagrantbr0")) |
|
|
@bridge = YAML.load(execute("network", "show", "vagrantbr0")) |
|
|
rescue |
|
|
rescue |
|
|
execute("network", "create", "vagrantbr0") |
|
|
|
|
|
|
|
|
execute("network", "create", "vagrantbr0", "dns.mode=dynamic") |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
@bridge |
|
|
@bridge |
|
|
@ -191,6 +191,10 @@ module Vagrant |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def exec(*command) |
|
|
|
|
|
execute("exec", @name, "--", *command) |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
# Taken from Virtualbox provider and modified in some parts. |
|
|
# Taken from Virtualbox provider and modified in some parts. |
|
|
# Execute the given subcommand for Lxc and return the output. |
|
|
# Execute the given subcommand for Lxc and return the output. |
|
|
def execute(*command, &block) |
|
|
def execute(*command, &block) |
|
|
|