Revision | 321e44d03cc3c883d4f662a177500f03ed01e721 (tree) |
---|---|
Time | 2017-08-30 16:52:12 |
Author | Tatsuki Sugiura <sugi@nemu...> |
Commiter | Tatsuki Sugiura |
Merge branch 'master' into debian
@@ -0,0 +1,5 @@ | ||
1 | +*~ | |
2 | +*.bak | |
3 | +*.rej | |
4 | +*.orig | |
5 | +.*.swp |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # OCF resource agent for PPP connection |
4 | 4 | # |
5 | 5 | # License: GNU General Public License version 2 (GPL2) |
6 | -# (c) 2017 Tatsuki Sugiura <sugi@nemui.org and OSDN Corporation <tech@osdn.jp>, | |
6 | +# (c) 2017 Tatsuki Sugiura <sugi@nemui.org> and OSDN Corporation <tech@osdn.jp> | |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
9 | 9 | # it under the terms of version 2 of the GNU General Public License as |
@@ -110,7 +110,7 @@ Handle ppp connection as OCF resource. This resource calls pon/poff to connect p | ||
110 | 110 | Resource will wait specified seconds for ppp interface aquires expected IP address provided by expected_ip4 or expected_ip6. |
111 | 111 | </longdesc> |
112 | 112 | <shortdesc lang="en">Wait time for expected ip</shortdesc> |
113 | - <content type="integer" default="3" /> | |
113 | + <content type="integer" default="30" /> | |
114 | 114 | </parameter> |
115 | 115 | </parameters> |
116 | 116 | <actions> |
@@ -0,0 +1,31 @@ | ||
1 | +# OCF Resource agent of PPP Connection | |
2 | + | |
3 | +## Example | |
4 | + | |
5 | +Here is an example that connect `dsl-provider` | |
6 | + | |
7 | +``` | |
8 | +primitive ppp-myisp PPPConnection \ | |
9 | + params isp=dsl-provider \ | |
10 | + op monitor interval=30 timeout=10 \ | |
11 | + op start timeout=60 interval=0 \ | |
12 | + op stop timeout=60 interval=0 | |
13 | +``` | |
14 | + | |
15 | +## Option parameters | |
16 | + | |
17 | +* **isp** - ISP name to connect. This will be passed to pon/poff, and pppd will be monitored with specified isp. Default is `provider`. | |
18 | +* **expected_ip4** - Expected IPv4 address for the ppp connection. If you specify this parameter, startup and monitor proecesses will wait the address associated with ppp interface. | |
19 | +* **expected_ip6** - Expected IPv6 local address (same as v4). | |
20 | +* **ip_wait_sec** - Resource will wait specified seconds for ppp interface aquires expected IP address provided by `expected_ip4` or `expected_ip6`. Default is 30. | |
21 | +* **pon_retries** - Retry limit for pon. Default is 30. | |
22 | +* **pon_wait_sec** - Resource will wait specified seconds for ppp connection up. When it's exceeded, retry to run pon. | |
23 | +* **poff_wait_sec** - Resource will wait specified seconds for ppp connection down. When it's exceeded, retry to run poff. | |
24 | + | |
25 | +## License/Copyright | |
26 | + | |
27 | +This script has been distributed under GNU General Public License version 2 (GPL2). | |
28 | + | |
29 | +Copyright (c) 2017 Tatsuki Sugiura <sugi@nemui.org> and OSDN Corporation <tech@osdn.jp>. | |
30 | + | |
31 | + |
@@ -1 +1,2 @@ | ||
1 | 1 | README.Debian |
2 | +README.md |