You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
621 B
25 lines
621 B
module Vagrant
|
|
module Lxd
|
|
module Action
|
|
class Network
|
|
def initialize(app, env)
|
|
@app = app
|
|
@logger = Log4r::Logger.new("vagrant::lxd::action::network")
|
|
end
|
|
|
|
def call(env)
|
|
##
|
|
# Right now I ignore all network config for machines and connect
|
|
# them all to a single bridge called vagrantbr0. (Well the name
|
|
# is transparently used and may be changed if necessary.
|
|
#
|
|
env[:bridge] = env[:machine].provider.driver.bridge
|
|
|
|
@app.call(env)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
# vim: set et ts=2 sw=2:
|