1OCF_HEARTBEAT_ROUTE(7)        OCF resource agents       OCF_HEARTBEAT_ROUTE(7)
2
3
4

NAME

6       ocf_heartbeat_Route - Manages network routes
7

SYNOPSIS

9       Route [start | stop | monitor | meta-data | validate-all]
10

DESCRIPTION

12       Enables and disables network routes.
13
14       Supports host and net routes, routes via a gateway address, and routes
15       using specific source addresses.
16
17       This resource agent is useful if a nodeĀ“s routing table needs to be
18       manipulated based on node role assignment.
19
20       Consider the following example use case:
21
22       - One cluster node serves as an IPsec tunnel endpoint.
23
24       - All other nodes use the IPsec tunnel to reach hosts in a specific
25       remote network.
26
27       Then, here is how you would implement this scheme making use of the
28       Route resource agent:
29
30       - Configure an ipsec LSB resource.
31
32       - Configure a cloned Route OCF resource.
33
34       - Create an order constraint to ensure that ipsec is started before
35       Route.
36
37       - Create a colocation constraint between the ipsec and Route resources,
38       to make sure no instance of your cloned Route resource is started on
39       the tunnel endpoint itself.
40

SUPPORTED PARAMETERS

42       destination
43           The destination network (or host) to be configured for the route.
44           Specify the netmask suffix in CIDR notation (e.g. "/24"). If no
45           suffix is given, a host route will be created. Specify "0.0.0.0/0"
46           or "default" if you want this resource to set the system default
47           route.
48
49           (unique, required, string, no default)
50
51       device
52           The outgoing network device to use for this route.
53
54           (unique, optional, string, no default)
55
56       gateway
57           The gateway IP address to use for this route.
58
59           (unique, optional, string, no default)
60
61       source
62           The source IP address to be configured for the route.
63
64           (unique, optional, string, no default)
65
66       table
67           The routing table to be configured for the route.
68
69           (optional, string, no default)
70

SUPPORTED ACTIONS

72       This resource agent supports the following actions (operations):
73
74       start
75           Starts the resource. Suggested minimum timeout: 20.
76
77       stop
78           Stops the resource. Suggested minimum timeout: 20.
79
80       monitor
81           Performs a detailed status check. Suggested minimum timeout: 20.
82           Suggested interval: 10.
83
84       reload
85           Suggested minimum timeout: 20.
86
87       meta-data
88           Retrieves resource agent metadata (internal use only). Suggested
89           minimum timeout: 5.
90
91       validate-all
92           Performs a validation of the resource configuration. Suggested
93           minimum timeout: 20.
94

EXAMPLE

96       The following is an example configuration for a Route resource using
97       the crm(8) shell:
98
99           primitive p_Route ocf:heartbeat:Route \
100             params \
101               destination=string \
102             op monitor timeout="20" interval="10" depth="0"
103

SEE ALSO

105       http://www.linux-ha.org/wiki/Route_(resource_agent)
106

AUTHOR

108       Linux-HA contributors (see the resource agent source for information
109       about individual authors)
110
111
112
113resource-agents 3.9.2             03/24/2017            OCF_HEARTBEAT_ROUTE(7)
Impressum