• R/O
  • HTTP
  • SSH
  • HTTPS

ppp-resource-agents: 提交


Commit MetaInfo

修订版db0fc9786cd56e31197b2322950d131fb3af76b2 (tree)
时间2017-08-30 16:42:09
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Add README.

更改概述

差异

--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
1+*~
2+*.bak
3+*.rej
4+*.orig
5+.*.swp
--- a/PPPConnection
+++ b/PPPConnection
@@ -3,7 +3,7 @@
33 # OCF resource agent for PPP connection
44 #
55 # 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>
77 #
88 # This program is free software; you can redistribute it and/or modify
99 # 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
110110 Resource will wait specified seconds for ppp interface aquires expected IP address provided by expected_ip4 or expected_ip6.
111111 </longdesc>
112112 <shortdesc lang="en">Wait time for expected ip</shortdesc>
113- <content type="integer" default="3" />
113+ <content type="integer" default="30" />
114114 </parameter>
115115 </parameters>
116116 <actions>
--- /dev/null
+++ b/README.md
@@ -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+
Show on old repository browser