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
119 stars 59 forks source link

[Bug]: Terraform PBR - srcip, dstip, nexthop - configured for type=BOOL when documentation refers to strings i.e. IP's. #1164

Closed kevinmarino closed 6 months ago

kevinmarino commented 6 months ago

Terraform Core Version

1.8.1

citrixadc Provider Version

1.39.0

Operating system

Windows

Affected Resource(s)

resource "citrixadc_nspbr" "tf_nspbr"

Equivalent NetScaler CLI Command

add ns pbr Mgmt-NSIP ALLOW -srcIP = 10.10.10.10 -destIP = 0.0.0.0-* -nextHop 10.10.10.10 -priority 10 -kernelstate SFAPPLIED61

Expected Behavior

A policy based route rule created

Actual Behavior

Because the values are type = bool you can't enter in any ip related information

Relevant Error/Panic Output Snippet

Inappropriate value for attribute "destip": a bool is required.

Terraform Configuration Files

resource "citrixadc_nspbr" "tf_nspbr" { name = "Mgmt-NSIP" action = "ALLOW" srcip = var.mgmt_interface_ip destip = "0.0.0.0-255.255.255.255" nexthop = var.mgmt_interface_ip }

Steps to Reproduce

Attempt to create a pbr resource

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

kevinmarino commented 6 months ago

You can close this issue - The documentation wasn't clear that you define the srcip as "true" and then configure srcipval with the ip.