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

Terraform cannot import rules in fortios_router_prefixlist

Open fungy01 opened this issue 2 years ago • 3 comments

I tried to use the following command to import fortios_router_prefixlist to my Terraform state. It only imported the prefixlist with the name and id but not the rule block within the prefixlist. "ID_10" is the name of the prefixlist.

terraform import fortios_router_prefixlist.pl_10 ID_10

$ terraform state show fortios_router_prefixlist.pl_10

fortios_router_prefixlist.pl_10:

resource "fortios_router_prefixlist" "pl_10" { id = "ID_10" name = "ID_10" }

fungy01 avatar Feb 25 '23 06:02 fungy01

Hi @fungy01 ,

Thank you for raising this issue. May I know which FGT and terraform version are you using, since on my side, it works as expected.

Thanks, Maxx

MaxxLiu22 avatar Feb 28 '23 22:02 MaxxLiu22

Hi @MaxxLiu22 , i have same problem with importing prefixlists and route-maps. Using FTG v7.2.4, terraform v1.4.2 and frotios provider v1.16.0

trrogi avatar Apr 10 '23 10:04 trrogi