Virtual Service deletion may fail when using the Macro API (DELETE /api/macro)
Avi Loadbalancer
Versions 22.1.1 - 22.1.7
Versions 30.2.1 - 30.2.7
Versions 31.2.1 - 31.2.2
This issue is caused due to an error in the internal lookup logic when using the VS name for the Macro API.
This issue will be fixed in future maintenance release.
As a workaround, instead of using the VS name in the API body, use the UUID of the VS as shown below.
{
"model_name":"VirtualService",
"data":
{
"uuid": "virtualservice-xxxx-xxxx-xxxx-xxxx-xxxx"
}
} Documentation on how to find the uuid of a VS - Find Virtual Service UUID
Note:
{
"error": "Cannot delete system default object",
"obj_name": "Default-Group"
}