CiscoDevNet / terraform-provider-fmc

Terraform Provider for FMC
https://registry.terraform.io/providers/CiscoDevNet/fmc/latest/docs
Mozilla Public License 2.0
16 stars 30 forks source link

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

Open mmaciejc opened 11 months ago

mmaciejc commented 11 months ago

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

205101-retr0 commented 10 months ago

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 commented 10 months ago

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