Update virtual_machine.html.markdown

Replace deprecated `gateway` attrib with `network_interface.ipv4_gateway`.
This commit is contained in:
Josh Kodroff 2017-05-30 14:31:39 -04:00 committed by GitHub
parent d9524a71d4
commit 75100a18c9
1 changed files with 1 additions and 2 deletions

View File

@ -42,12 +42,11 @@ resource "vsphere_virtual_machine" "lb" {
cluster = "Production Cluster" cluster = "Production Cluster"
resource_pool = "Production Cluster/Resources/Production Servers" resource_pool = "Production Cluster/Resources/Production Servers"
gateway = "10.20.30.254"
network_interface { network_interface {
label = "10_20_30_VMNet" label = "10_20_30_VMNet"
ipv4_address = "10.20.30.40" ipv4_address = "10.20.30.40"
ipv4_prefix_length = "24" ipv4_prefix_length = "24"
ipv4_gateway = "10.20.30.254"
} }
disk { disk {