fix(nebula): try to add mac and IP support

This commit is contained in:
Philippe Caseiro 2023-03-02 10:12:45 +01:00
parent d02ec11cb9
commit 85bb5d597d
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ resource "opennebula_template" "vm_template" {
content { content {
network_id = nic.value.network_id network_id = nic.value.network_id
model = "virtio" model = "virtio"
mac = nic.value.mac mac = ( nic.value.mac != "" ? nic.value.mac : "" )
ip = ( nic.value.ip != "" ? nic.value.ip : "" )
} }
} }
permissions = var.permissions permissions = var.permissions