OpenNebula / terraform-provider-opennebula

Terraform provider for OpenNebula
https://www.terraform.io/docs/providers/opennebula/
Mozilla Public License 2.0
63 stars 52 forks source link

Add floating IP support for vrouter NICs #510

Closed sk4zuzu closed 9 months ago

sk4zuzu commented 9 months ago

Description

OpenNebula supports automatic floating IP (VIP) pre-allocation for vrouter instances. It can be enabled by adding FLOATING_IP = "YES" to NIC blocks. The allocated VIP values are passed to vrouter instances via ETHx_VROUTER_IP context variables, then VRRP decides which vrouter instance should host the VIPs. This issue is about implementing this missing feature.

New or affected resources and data sources

opennebula_virtual_router_nic

Potential terraform configuration

resource "opennebula_virtual_router_nic" "example1" {
  floating_ip       = true
  virtual_router_id = opennebula_virtual_router.example.id
  network_id        = opennebula_virtual_network.example.id
}

resource "opennebula_virtual_router_nic" "example2" {
  virtual_router_id = opennebula_virtual_router.example.id
  network_id        = opennebula_virtual_network.example.id
}

resource "opennebula_virtual_router_nic" "example3" {
  floating_ip       = false
  virtual_router_id = opennebula_virtual_router.example.id
  network_id        = opennebula_virtual_network.example.id
}

References

https://docs.opennebula.io/stable/marketplace/appliances/vnf.html