Fix typo (netmast => netmask) for Photon guest #7808
This commit is contained in:
parent
d96dc95076
commit
4bf32e3f6d
|
@ -18,7 +18,7 @@ module VagrantPlugins
|
||||||
device = interfaces[network[:interface]]
|
device = interfaces[network[:interface]]
|
||||||
command = "ifconfig #{device}"
|
command = "ifconfig #{device}"
|
||||||
command << " #{network[:ip]}" if network[:ip]
|
command << " #{network[:ip]}" if network[:ip]
|
||||||
command << " netmast #{network[:netmask]}" if network[:netmask]
|
command << " netmask #{network[:netmask]}" if network[:netmask]
|
||||||
commands << command
|
commands << command
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ describe "VagrantPlugins::GuestPhoton::Cap:ConfigureNetworks" do
|
||||||
it "creates and starts the networks" do
|
it "creates and starts the networks" do
|
||||||
cap.configure_networks(machine, [network_1, network_2])
|
cap.configure_networks(machine, [network_1, network_2])
|
||||||
expect(comm.received_commands[1]).to match(/ifconfig eth1/)
|
expect(comm.received_commands[1]).to match(/ifconfig eth1/)
|
||||||
expect(comm.received_commands[1]).to match(/ifconfig eth2 33.33.33.10 netmast 255.255.0.0/)
|
expect(comm.received_commands[1]).to match(/ifconfig eth2 33.33.33.10 netmask 255.255.0.0/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue