aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/terraform/azure/nic.tf
diff options
context:
space:
mode:
authorMaros Mullner <maros.mullner@pantheon.tech>2020-03-03 11:32:36 +0100
committerPeter Mikus <pmikus@cisco.com>2020-03-05 15:32:43 +0000
commitcafc2c4349638cb7b5d63e46754505256722c28b (patch)
tree232a87c4bb594131adce0ddb60377a16d1167ee8 /resources/tools/terraform/azure/nic.tf
parent267422b71bfa49ada4b463d54cd5754c5ea097c7 (diff)
Azure topology file MAC fix.
Signed-off-by: Maros Mullner <maros.mullner@pantheon.tech> Change-Id: I7eefdb5db39a0f5328c7f1a0a0a5d57c762cc21c
Diffstat (limited to 'resources/tools/terraform/azure/nic.tf')
-rw-r--r--resources/tools/terraform/azure/nic.tf35
1 files changed, 35 insertions, 0 deletions
diff --git a/resources/tools/terraform/azure/nic.tf b/resources/tools/terraform/azure/nic.tf
index c2597571b1..8bacd4ad33 100644
--- a/resources/tools/terraform/azure/nic.tf
+++ b/resources/tools/terraform/azure/nic.tf
@@ -16,6 +16,12 @@ resource "azurerm_network_interface" "dut1_if2" {
}
}
+data "azurerm_network_interface" "dut1_if2" {
+ name = "dut1_if2"
+ resource_group_name = azurerm_resource_group.CSIT.name
+ depends_on = [ azurerm_virtual_machine.dut1 ]
+}
+
resource "azurerm_network_interface" "dut2_if1" {
name = "dut2_if1"
location = azurerm_resource_group.CSIT.location
@@ -32,6 +38,12 @@ resource "azurerm_network_interface" "dut2_if1" {
}
}
+data "azurerm_network_interface" "dut2_if1" {
+ name = "dut2_if1"
+ resource_group_name = azurerm_resource_group.CSIT.name
+ depends_on = [ azurerm_virtual_machine.dut2 ]
+}
+
resource "azurerm_network_interface" "dut1_if1" {
name = "dut1_if1"
location = azurerm_resource_group.CSIT.location
@@ -48,6 +60,12 @@ resource "azurerm_network_interface" "dut1_if1" {
}
}
+data "azurerm_network_interface" "dut1_if1" {
+ name = "dut1_if1"
+ resource_group_name = azurerm_resource_group.CSIT.name
+ depends_on = [ azurerm_virtual_machine.dut1 ]
+}
+
resource "azurerm_network_interface" "dut2_if2" {
name = "dut2_if2"
location = azurerm_resource_group.CSIT.location
@@ -64,6 +82,12 @@ resource "azurerm_network_interface" "dut2_if2" {
}
}
+data "azurerm_network_interface" "dut2_if2" {
+ name = "dut2_if2"
+ resource_group_name = azurerm_resource_group.CSIT.name
+ depends_on = [ azurerm_virtual_machine.dut2 ]
+}
+
resource "azurerm_network_interface" "tg_if1" {
name = "tg_if1"
location = azurerm_resource_group.CSIT.location
@@ -80,6 +104,12 @@ resource "azurerm_network_interface" "tg_if1" {
}
}
+data "azurerm_network_interface" "tg_if1" {
+ name = "tg_if1"
+ resource_group_name = azurerm_resource_group.CSIT.name
+ depends_on = [ azurerm_virtual_machine.tg ]
+}
+
resource "azurerm_network_interface" "tg_if2" {
name = "tg_if2"
location = azurerm_resource_group.CSIT.location
@@ -96,3 +126,8 @@ resource "azurerm_network_interface" "tg_if2" {
}
}
+data "azurerm_network_interface" "tg_if2" {
+ name = "tg_if2"
+ resource_group_name = azurerm_resource_group.CSIT.name
+ depends_on = [ azurerm_virtual_machine.tg ]
+}