1OCF_HEARTBEAT_IPSRCA(7) OCF resource agents OCF_HEARTBEAT_IPSRCA(7)
2
3
4
6 ocf_heartbeat_IPsrcaddr - Manages the preferred source address for
7 outgoing IP packets
8
10 IPsrcaddr [start | stop | monitor | meta-data | validate-all]
11
13 Resource script for IPsrcaddr. It manages the preferred source address
14 modification.
15
16 Note: DHCP should not be enabled for the interface serving the
17 preferred source address. Enabling DHCP may result in unexpected
18 behavior, such as the automatic addition of duplicate or conflicting
19 routes. This may cause the IPsrcaddr resource to fail, or it may
20 produce undesired behavior while the resource continues to run.
21
23 ipaddress
24 The IP address.
25
26 (required, string, no default)
27
28 cidr_netmask
29 The netmask for the interface in CIDR format. (ie, 24), or in
30 dotted quad notation 255.255.255.0).
31
32 (optional, string, no default)
33
34 destination
35 The destination IP/subnet for the route (default: 0.0.0.0/0)
36
37 (optional, string, default "0.0.0.0/0")
38
39 proto
40 Proto to match when finding network. E.g. "kernel".
41
42 (optional, string, no default)
43
44 metric
45 Metric. Only needed if incorrect metric value is used.
46
47 (optional, string, no default)
48
49 table
50 Table to modify and use for interface lookup. E.g. "local".
51
52 The table has to have a route matching the "destination" parameter.
53
54 This can be used for policy based routing. See man ip-rule(8).
55
56 (optional, string, no default)
57
59 This resource agent supports the following actions (operations):
60
61 start
62 Starts the resource. Suggested minimum timeout: 20s.
63
64 stop
65 Stops the resource. Suggested minimum timeout: 20s.
66
67 monitor
68 Performs a detailed status check. Suggested minimum timeout: 20s.
69 Suggested interval: 10s.
70
71 validate-all
72 Performs a validation of the resource configuration. Suggested
73 minimum timeout: 5s.
74
75 meta-data
76 Retrieves resource agent metadata (internal use only). Suggested
77 minimum timeout: 5s.
78
80 The following is an example configuration for a IPsrcaddr resource
81 using the crm(8) shell:
82
83 primitive p_IPsrcaddr ocf:heartbeat:IPsrcaddr \
84 params \
85 ipaddress=string \
86 op monitor depth="0" timeout="20s" interval="10s"
87
89 The following is an example configuration for a IPsrcaddr resource
90 using pcs(8)
91
92 pcs resource create p_IPsrcaddr ocf:heartbeat:IPsrcaddr \
93 ipaddress=string \
94 op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
95
97 http://clusterlabs.org/
98
100 ClusterLabs contributors (see the resource agent source for information
101 about individual authors)
102
103
104
105resource-agents UNKNOWN 10/11/2023 OCF_HEARTBEAT_IPSRCA(7)