delete_static_route
Permanently delete a static route from a Tier-0 or Tier-1 gateway. Confirm route ID and destination first to avoid traffic loss.
Instructions
[WRITE] Permanently delete a static route from a Tier-0 or Tier-1 gateway.
Irreversible: traffic to the route's destination CIDR immediately falls back to remaining routes or is dropped. Run list_static_routes on the same tier1_id first to confirm the route_id, destination network, and next hops, and confirm with the user before deleting. Returns a confirmation string on success, or an "Error: ..." string (route or gateway not found, connectivity failure). Recorded in the audit log (~/.vmware/audit.db).
Args: tier1_id: Gateway that owns the route (Tier-0 or Tier-1, per gateway_type), as returned by list_tier0_gateways / list_tier1_gateways. route_id: Static route ID to delete, as returned by list_static_routes. gateway_type: Either "tier0" or "tier1" (default "tier1"). target: NSX Manager name from config.yaml. Uses the default target if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| route_id | Yes | ||
| tier1_id | Yes | ||
| gateway_type | No | tier1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |