table of contents
OCF_HEARTBEAT_ROUTE(7) | OCF resource agents | OCF_HEARTBEAT_ROUTE(7) |
NAME¶
ocf_heartbeat_Route - Manages network routes
SYNOPSIS¶
Route [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
Enables and disables network routes.
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.
Consider the following example use case:
- 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 is how you would implement this scheme making use of the Route resource agent:
- Configure an ipsec LSB resource.
- Configure a cloned Route OCF resource.
- Create an order constraint to ensure that ipsec is started before Route.
- Create a colocation constraint between the ipsec and Route resources, to make sure no instance of your cloned Route resource is started on the tunnel endpoint itself.
SUPPORTED PARAMETERS¶
destination
(unique, required, string, no default)
device
(optional, string, no default)
gateway
(optional, string, no default)
source
(optional, string, no default)
table
(optional, string, no default)
family
(optional, string, default "detect")
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):
start
stop
monitor
reload
meta-data
validate-all
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" depth="0"
SEE ALSO¶
AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)
03/19/2024 | resource-agents UNKNOWN |