delete_static_route
Permanently removes a static route from a Tier-0 or Tier-1 gateway, rerouting or dropping traffic to the destination CIDR. Verify with list_static_routes before deletion.
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 and next hops, and confirm with the user before deleting. gateway_type must match where the route lives. Returns a confirmation string, or an "Error: ..." string — not a dict.
Args: tier1_id: Gateway that owns the route (Tier-0 or Tier-1, per gateway_type), from 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 target from config (default 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 |