OpenNebula / terraform-provider-opennebula

Terraform provider for OpenNebula

Home Page:https://www.terraform.io/docs/providers/opennebula/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add floating IP support for vrouter NICs

sk4zuzu opened this issue · comments

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