Open
Description
Describe the bug
When using Enhanced Virtual Service setup, we always receive the the following error
HTTP code: 400; error from Avi: map[error:{"vh_matches":"{"path":"Field check for path failed : There must be at least 1 path"}"}]
Additionally, when importing an enhanced virtual service with valid vh_matches configuration into local state, the vh_mathes field is always null.
Reproduction steps
- Configure valid parent VVS resource
- Configure valid child VVS resource
- Apply
- Receive error: HTTP code: 400; error from Avi: map[error:{"vh_matches":"{"path":"Field check for path failed : There must be at least 1 path"}"}]
Expected behavior
Virtual Service creation should succeed with the specified path configurations provided.
Additional context
`
resource "avi_virtualservice" "child" {
name = "example-child"
type = "VS_TYPE_VH_CHILD"
vh_type = "VS_TYPE_VH_ENHANCED"
vh_parent_vs_ref = avi_virtualservice.parent-vs.id
vh_matches {
host = "test.example.com"
rules {
name = "test"
matches {
path {
match_str = ["/test"]
match_criteria = "BEGINS_WITH"
match_case = "INSENSITIVE"
}
}
}
}
}
`