summaryrefslogtreecommitdiff
path: root/templates/renew/dhcpv6
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-05-28 17:43:48 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-05-28 17:43:48 -0700
commit117041e7a7495dfdade0f4c94f38a5fcb1bda7b2 (patch)
tree9e4800b798f85986de0365a0c853b26ba0165fc6 /templates/renew/dhcpv6
parentb1f7a5e6af6614935d608cd52bc7df7eb8e074b2 (diff)
parentce660cba1408ac05795b19bc5adaf605b470c34f (diff)
downloadvyatta-op-117041e7a7495dfdade0f4c94f38a5fcb1bda7b2.tar.gz
vyatta-op-117041e7a7495dfdade0f4c94f38a5fcb1bda7b2.zip
Merge branch 'larkspur' of http://git.vyatta.com/vyatta-op into larkspur
Diffstat (limited to 'templates/renew/dhcpv6')
-rw-r--r--templates/renew/dhcpv6/interface/node.def1
-rw-r--r--templates/renew/dhcpv6/interface/node.tag/node.def10
-rw-r--r--templates/renew/dhcpv6/node.def1
3 files changed, 12 insertions, 0 deletions
diff --git a/templates/renew/dhcpv6/interface/node.def b/templates/renew/dhcpv6/interface/node.def
new file mode 100644
index 0000000..eb69706
--- /dev/null
+++ b/templates/renew/dhcpv6/interface/node.def
@@ -0,0 +1 @@
+help: Renew DHCPv6 lease for an interface \ No newline at end of file
diff --git a/templates/renew/dhcpv6/interface/node.tag/node.def b/templates/renew/dhcpv6/interface/node.tag/node.def
new file mode 100644
index 0000000..b6c5813
--- /dev/null
+++ b/templates/renew/dhcpv6/interface/node.tag/node.def
@@ -0,0 +1,10 @@
+help: Renew a DHCPv6 lease on an interface
+
+allowed:
+ local -a array
+ array=( /var/lib/dhcp3/dhclient_v6_*.conf )
+ tail=${array[@]#/var/lib/dhcp3/dhclient_v6_}
+ ifnames=${tail[@]%.conf}
+ echo -n ${ifnames[@]}
+
+run: sudo /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --renew --ifname "$4" \ No newline at end of file
diff --git a/templates/renew/dhcpv6/node.def b/templates/renew/dhcpv6/node.def
new file mode 100644
index 0000000..cbfb1bb
--- /dev/null
+++ b/templates/renew/dhcpv6/node.def
@@ -0,0 +1 @@
+help: Renew a DHCPv6 lease