summaryrefslogtreecommitdiff
path: root/templates/release/dhcpv6/interface
diff options
context:
space:
mode:
Diffstat (limited to 'templates/release/dhcpv6/interface')
-rw-r--r--templates/release/dhcpv6/interface/node.def2
-rw-r--r--templates/release/dhcpv6/interface/node.tag/node.def10
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/release/dhcpv6/interface/node.def b/templates/release/dhcpv6/interface/node.def
new file mode 100644
index 0000000..847df8e
--- /dev/null
+++ b/templates/release/dhcpv6/interface/node.def
@@ -0,0 +1,2 @@
+help: Release a DHCPv6 lease on an interface
+
diff --git a/templates/release/dhcpv6/interface/node.tag/node.def b/templates/release/dhcpv6/interface/node.tag/node.def
new file mode 100644
index 0000000..05f45c8
--- /dev/null
+++ b/templates/release/dhcpv6/interface/node.tag/node.def
@@ -0,0 +1,10 @@
+help: Release DHCPv6 lease for 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 --release --ifname "$4"