jogjacamp / vagrant-xenserver-jc

A Vagrant provider for XenServer
MIT License
0 stars 0 forks source link

if proto not explicitly set to static, network configuration will fail #2

Open chenull opened 7 years ago

chenull commented 7 years ago
    45:             ))
    46:
    47:             networks_to_configure << network
    48:           end
    49:           require "pry"; binding.pry
 => 50:           if !networks_to_configure.empty?
    51:             env[:ui].info I18n.t("vagrant.actions.vm.network.configuring")
    52:             env[:machine].guest.capability(
    53:               :configure_networks, networks_to_configure)
    54:           end
    55:

[1] pry(#<VagrantPlugins::XenServer::Action::ConfigureNetwork>)> networks_to_configure
=> [{:interface=>1, :type=>nil, :ip=>"192.168.5.x", :netmask=>"255.255.255.0", :gateway=>"192.168.5.254"}]
[2] pry(#<VagrantPlugins::XenServer::Action::ConfigureNetwork>)> !!!

type should not be nil