Skip to content

Commit 7a49670

Browse files
feat(vlan): add mac_address to VLAN interface configuration (#58)
* feat(vlan): add mac_address to VLAN interface configuration * chore: update required provider version to pick up support for MAC addresses on VLAN interfaces * fix: add missing attribute under resource * chore: bump CI run
1 parent d03c75d commit 7a49670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iosxe_interfaces.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ locals {
632632
ipv4_address = try(int.ipv4.address, local.defaults.iosxe.devices.configuration.interfaces.vlans.ipv4.address, null)
633633
ipv4_address_mask = try(int.ipv4.address_mask, local.defaults.iosxe.devices.configuration.interfaces.vlans.ipv4.address_mask, null)
634634
ip_proxy_arp = try(int.ipv4.proxy_arp, local.defaults.iosxe.devices.configuration.interfaces.vlans.ipv4.proxy_arp, null)
635+
mac_address = try(int.mac_address, local.defaults.iosxe.devices.configuration.interfaces.vlans.mac_address, null)
635636
ip_dhcp_relay_source_interface = try("${try(int.ipv4.dhcp_relay_source_interface_type, local.defaults.iosxe.devices.configuration.interfaces.vlans.ipv4.dhcp_relay_source_interface_type)}${try(int.ipv4.dhcp_relay_source_interface_id, local.defaults.iosxe.devices.configuration.interfaces.vlans.ipv4.dhcp_relay_source_interface_id)}", null)
636637
helper_addresses = try(length(int.ipv4.helper_addresses) == 0, true) ? null : [for ha in int.ipv4.helper_addresses : {
637638
address = try(ha.address, local.defaults.iosxe.devices.configuration.interfaces.vlans.ipv4.helper_addresses.address, null)
@@ -724,6 +725,7 @@ resource "iosxe_interface_vlan" "vlan" {
724725
ipv4_address = each.value.ipv4_address
725726
ipv4_address_mask = each.value.ipv4_address_mask
726727
ip_proxy_arp = each.value.ip_proxy_arp
728+
mac_address = each.value.mac_address
727729
ip_dhcp_relay_source_interface = each.value.ip_dhcp_relay_source_interface
728730
helper_addresses = each.value.helper_addresses
729731
ip_access_group_in = each.value.ip_access_group_in

0 commit comments

Comments
 (0)