citrix / terraform-provider-citrixadc

Part of NetScaler Automation Toolkit | https://github.com/netscaler/automation-toolkit
https://registry.terraform.io/providers/citrix/citrixadc
Apache License 2.0
118 stars 58 forks source link

[Bug]: Removing the redirectfromport attribute of a lbvserver doesn't remove it from the NetScaler configuration #1183

Open joachimBurket opened 3 months ago

joachimBurket commented 3 months ago

Terraform Core Version

1.7.2

citrixadc Provider Version

1.39.0

Operating system

RHEL9

Affected Resource(s)

Equivalent NetScaler CLI Command

unset lb vserver lb_vs_https -redirectFromPort

Expected Behavior

When removing the redirectfromport from the citrixadc_lbvserver resource, the attribute should be removed from the lbvserver in the NetScaler.

Actual Behavior

The attribute redirectfromport isn't removed from the config in the NetScaler

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "citrixadc_lbvserver" "my_https" {
  name        = "lb_vs_https"
  ipv46       = "10.0.0.5"
  port        = 443
  servicetype = "SSL"
  redirectfromport = 80
  sslcertkey  = citrixadc_sslcertkey.my_https.certkey
}

Steps to Reproduce

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Cesar-EF commented 2 months ago

I am having the same issue. When setting redirectfromport attribute from any-port to null plan returns No changes. Your infrastructure matches the configuration.