diff options
Diffstat (limited to 'resources/tools/terraform/azure/nic.tf')
-rw-r--r-- | resources/tools/terraform/azure/nic.tf | 35 |
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 ] +} |