terraform-provider-bigip
terraform-provider-bigip copied to clipboard
BigIP LTM Monitor - Incorrect name validation for path
trafficstars
Environment
- TMOS/Bigip Version: 16.1.4.1
- Terraform Version: v1.8.1
- Terraform bigip provider Version: v1.22.0
Summary
When creating a bigip_ltm_monitor, incorrect name field validation is performed, not allowing for a path to be specified. Example /Common/test/test_monitor
Steps To Reproduce
resource "bigip_ltm_monitor" "monitor" {
name = "/Common/test/test_monitor"
parent = "/Common/HTTP"
}
This will throw an error claiming the name must match /Partition/Name.
Expected Behavior
The monitor is created with the specified partition and path, as can be done on the GUI.
Actual Behavior
An error is raised that the name doesn't match the expected validation.
│ Error: "name" must match /Partition/Name and contain letters, numbers or [._-:]. e.g. /Common/my-pool
│
│ with module.production.module.netbox.bigip_ltm_monitor.monitor,
│ on modules/production_https/main.tf line 14, in resource "bigip_ltm_monitor" "monitor":
│ 14: name = "/Common/test/test_monitor"
Hi,
Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1558.