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. E.g. "local".
51
52 The table has to have a route matching the "destination" parameter.
53
54 (optional, string, no default)
55
57 This resource agent supports the following actions (operations):
58
59 start
60 Starts the resource. Suggested minimum timeout: 20s.
61
62 stop
63 Stops the resource. Suggested minimum timeout: 20s.
64
65 monitor
66 Performs a detailed status check. Suggested minimum timeout: 20s.
67 Suggested interval: 10s.
68
69 validate-all
70 Performs a validation of the resource configuration. Suggested
71 minimum timeout: 5s.
72
73 meta-data
74 Retrieves resource agent metadata (internal use only). Suggested
75 minimum timeout: 5s.
76
78 The following is an example configuration for a IPsrcaddr resource
79 using the crm(8) shell:
80
81 primitive p_IPsrcaddr ocf:heartbeat:IPsrcaddr \
82 params \
83 ipaddress=string \
84 op monitor depth="0" timeout="20s" interval="10s"
85
87 The following is an example configuration for a IPsrcaddr resource
88 using pcs(8)
89
90 pcs resource create p_IPsrcaddr ocf:heartbeat:IPsrcaddr \
91 ipaddress=string \
92 op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
93
95 http://clusterlabs.org/
96
98 ClusterLabs contributors (see the resource agent source for information
99 about individual authors)
100
101
102
103resource-agents UNKNOWN 01/25/2023 OCF_HEARTBEAT_IPSRCA(7)