opnsense_route_add
Add a static route to OPNsense by specifying destination network and gateway name. Apply changes with opnsense_route_apply to activate.
Instructions
Add a static route. The gateway parameter must be a gateway name from opnsense_route_gateway_list. Run opnsense_route_apply afterwards to activate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Destination network in CIDR notation (e.g., 100.64.0.0/10) | |
| gateway | Yes | Gateway name or UUID (use opnsense_route_gateway_list to find available gateways) | |
| disabled | No | Whether the route is disabled (default: false) | |
| description | No | Optional description |