Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include site name in interface descriptions #26

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/device/tunnel.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "netbox_device_interface" "core" {
type = "virtual"
name = each.value.if_name
label = "Tunnel ${var.name}"
description = "Tunnel to ${var.name}"
description = "Tunnel to ${local.location}"
device_id = each.value.device_id

mtu = 1476
Expand All @@ -24,7 +24,7 @@ resource "netbox_interface" "core" {
for_each = { for peer in var.core_tunnels : peer.name => peer if peer.device_type == "vm" }

name = each.value.if_name
description = "Tunnel to ${var.name}"
description = "Tunnel to ${local.location}"
virtual_machine_id = each.value.device_id

mtu = 1476
Expand All @@ -41,7 +41,7 @@ resource "netbox_available_prefix" "tunnels_v4" {
prefix_length = 31

status = "active"
description = "Tunnel from ${each.key} to ${var.name}"
description = "Tunnel from ${each.key} to ${local.location}"
role_id = var.tunnel_prefix_role_id
tenant_id = var.tenant_id
}
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "netbox_available_prefix" "tunnels_v6" {
prefix_length = 64

status = "active"
description = "Tunnel from ${each.key} to ${var.name}"
description = "Tunnel from ${each.key} to ${local.location}"
role_id = var.tunnel_prefix_role_id
tenant_id = var.tenant_id
}
Expand Down