OCF_HEARTBEAT_ROUTE(7)
β¨ NAME β¨
okay so bestie, this is the OCF_HEARTBEAT_ROUTE(7) page, and the star of the show is ocf_heartbeat_Route β it literally Manages network routes. Thatβs the whole vibe. π
πΈ SYNOPSIS πΈ
Use it like this, no cap:
Route [start | stop | monitor | meta-data | validate-all]
π¦ DESCRIPTION π¦
So what does it do? It enables and disables network routes. It supports host and net routes, routes via a gateway address, and routes using specific source addresses.
This resource agent is useful if a nodeβs routing table needs to be manipulated based on node role assignment. Highkey iconic. π«Ά
Consider this example use case, bestie:
- One cluster node serves as an IPsec tunnel endpoint.
- All other nodes use the IPsec tunnel to reach hosts in a specific remote network.
Then hereβs how youβd implement this scheme making use of the Route resource agent:
- Configure an
ipsecLSB resource. - Configure a cloned
RouteOCF resource. - Create an order constraint to ensure that
ipsecis started beforeRoute. - Create a colocation constraint between the
ipsecandRouteresources, to make sure no instance of your clonedRouteresource is started on the tunnel endpoint itself.
π SUPPORTED PARAMETERS π
Parameter time, bestie. These are the knobs:
destinationβ The destination network (or host) to be configured for the route. Specify the netmask suffix in CIDR notation (e.g."/24"). If no suffix is given, a host route will be created. Specify"0.0.0.0/0"or"::/0"if you want this resource to set the system default route. The keyword"default"is also accepted, but the unique constraint on this parameter will prevent from adding both IPv4 and IPv6 default routes at the same time in this way.
(unique, required, string, no default)
deviceβ The outgoing network device to use for this route.
(optional, string, no default)
gatewayβ The gateway IP address to use for this route.
(optional, string, no default)
sourceβ The source IP address to be configured for the route.
(optional, string, no default)
tableβ The routing table to be configured for the route.
(optional, string, no default)
familyβ The address family to be used for the route. The options areip4for IP version 4,ip6for IP version 6, anddetectto detect from thedestinationaddress.
(optional, string, default "detect")
π₯ SUPPORTED ACTIONS π₯
This resource agent supports the following actions (operations):
startβ Starts the resource. Suggested minimum timeout:20s.stopβ Stops the resource. Suggested minimum timeout:20s.monitorβ Performs a detailed status check. Suggested minimum timeout:20s. Suggested interval:10s.reloadβ Suggested minimum timeout:20s.meta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s.validate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:20s.
π EXAMPLE CRM SHELL π
The following is an example configuration for a Route resource using the crm(8) shell:
primitive p_Route ocf:heartbeat:Route \
params \
destination=string \
op monitor timeout="20s" interval="10s" depth="0"
π EXAMPLE PCS π
The following is an example configuration for a Route resource using pcs(8):
pcs resource create p_Route ocf:heartbeat:Route \
destination=string \
op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0"
π SEE ALSO π
Go look at http://clusterlabs.org/ β thatβs the SEE ALSO, bestie. β¨
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors).
source/version: resource-agents UNKNOWN Β· date: 10/01/2026 β ok bye bestie, slay your routes πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms