OSDN Git Service

Add README. v0.1
authorTatsuki Sugiura <sugi@nemui.org>
Wed, 30 Aug 2017 07:42:09 +0000 (16:42 +0900)
committerTatsuki Sugiura <sugi@nemui.org>
Wed, 30 Aug 2017 07:42:09 +0000 (16:42 +0900)
.gitignore [new file with mode: 0644]
PPPConnection
README.md [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..110dc5b
--- /dev/null
@@ -0,0 +1,5 @@
+*~
+*.bak
+*.rej
+*.orig
+.*.swp
index 3c34cf8..ad0829a 100755 (executable)
@@ -3,7 +3,7 @@
 #   OCF resource agent for PPP connection
 #
 #   License:      GNU General Public License version 2 (GPL2)
-#   (c) 2017 Tatsuki Sugiura <sugi@nemui.org and OSDN Corporation <tech@osdn.jp>,
+#   (c) 2017 Tatsuki Sugiura <sugi@nemui.org> and OSDN Corporation <tech@osdn.jp>
 #
 # This program is free software; you can redistribute it and/or modify
 # 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
       Resource will wait specified seconds for ppp interface aquires expected IP address provided by expected_ip4 or expected_ip6.
       </longdesc>
       <shortdesc lang="en">Wait time for expected ip</shortdesc>
-      <content type="integer" default="3" />
+      <content type="integer" default="30" />
     </parameter>
   </parameters>
   <actions>
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..cc1136a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,31 @@
+# OCF Resource agent of PPP Connection
+
+## Example
+
+Here is an example that connect `dsl-provider`
+
+```
+primitive ppp-myisp PPPConnection \
+        params isp=dsl-provider \
+        op monitor interval=30 timeout=10 \
+        op start timeout=60 interval=0 \
+        op stop timeout=60 interval=0
+```
+
+## Option parameters
+
+* **isp** - ISP name to connect. This will be passed to pon/poff, and pppd will be monitored with specified isp. Default is `provider`.
+* **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.
+* **expected_ip6** - Expected IPv6 local address (same as v4).
+* **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.
+* **pon_retries** - Retry limit for pon. Default is 30.
+* **pon_wait_sec** - Resource will wait specified seconds for ppp connection up. When it's exceeded, retry to run pon.
+* **poff_wait_sec** - Resource will wait specified seconds for ppp connection down. When it's exceeded, retry to run poff.
+
+## License/Copyright
+
+This script has been distributed under GNU General Public License version 2 (GPL2).
+
+Copyright (c) 2017 Tatsuki Sugiura <sugi@nemui.org> and OSDN Corporation <tech@osdn.jp>.
+
+