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

resource "fmc_device_physical_interfaces" doesn't discover changes to the interface configuration via FMC #134

Open
mmaciejc opened this issue Oct 23, 2023 · 2 comments

Comments

@mmaciejc
Copy link

mmaciejc commented Oct 23, 2023

My config: (tested on 7.2.5)

data "fmc_device_physical_interfaces" "PhysicalInterface1" {
	device_id = fmc_devices.Device1.id
	name = "GigabitEthernet0/0"
	depends_on = [
		fmc_devices.Device1
	] 	 
}

resource "fmc_device_physical_interfaces" "PhysicalInterface1" {
    name = "GigabitEthernet0/0"
	enabled = true
	device_id = fmc_devices.Device1.id
	physical_interface_id = data.fmc_device_physical_interfaces.PhysicalInterface1.id
	security_zone_id = data.fmc_security_zones.SecurityZone1.id
	if_name = "Inside"
	description = "<description> - optional"
	mtu = 1700
	mode = "NONE"
	ipv4_static_address = "10.20.220.45"
	ipv4_static_netmask = 24
	ipv4_dhcp_enabled = "false"
	ipv4_dhcp_route_metric = 1
	depends_on = [
		data.fmc_device_physical_interfaces.PhysicalInterface1
	] 	 
}

once I change values via FMC GUI, terraform plan dosn't sense the change

Tested changes to:
Enabled
IP address,
MTU,
SecurityZone

@mmaciejc mmaciejc changed the title resource "fmc_device_physical_interfaces" doesn't discover changes to enabled value resource "fmc_device_physical_interfaces" doesn't discover changes to the interface configuration via FMC Oct 23, 2023
@205101-retr0
Copy link
Contributor

Thank you for letting us know of this bug. I'm looking into this and will get back to you in case I need more information.

@205101-retr0
Copy link
Contributor

This bug has been fixed and merged into develop. It is will be patched into main shortly soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants