rakutentech / terraform-provider-vsphere

[DEPRECATED] Terraform Custom Provider for VMware vSphere
Mozilla Public License 2.0
82 stars 30 forks source link

Per interface gateway #52

Open deasmi opened 8 years ago

deasmi commented 8 years ago

In my environment I have two interfaces per VM, one on the VM Network and another on a Storage network.

The gateway setting gets applied to both, and so the route table ends up with a route to the gateway on both interfaces.

This breaks 'things'.

I'm fixing this by adding

nmcli c modify ens224 ipv4.gateway ''
nmcli c down ens224
nmcli c up ens224

to a remote-exec

but it would be nicer if the gateway setting was per interface.

I've no idea if this is possible with the VMWare customisation interface however.