terraform-provider-fortios icon indicating copy to clipboard operation
terraform-provider-fortios copied to clipboard

Data source fortios_system_interfacelist not able to filter on interface name

Open dbergstra opened this issue 2 years ago • 1 comments

I would like to filter on interface name. By filtering on type I got the name "Loopback - NTP". But when I filter on this name I got nothing...

When using:

data "fortios_system_interfacelist" fortigate_interface_filter {
  filter = "type==loopback"
}

output:

Changes to Outputs:
  + value = [
      + "Loopback - NTP",
    ]

When I filter on this interface name I got "No changes.":

data "fortios_system_interfacelist" fortigate_interface_filter {
  filter = "interface==Loopback - NTP"
}

dbergstra avatar Aug 04 '23 08:08 dbergstra

Hi @danadeweerdx ,

Thank you for raising this question, how about using filter = "name==Loopback - NTP" and giving a try which works well on my side, let me know if that doesn't work.

Thanks, Maxx

MaxxLiu22 avatar Sep 08 '23 19:09 MaxxLiu22