summaryrefslogtreecommitdiff
path: root/templates/renew
diff options
context:
space:
mode:
Diffstat (limited to 'templates/renew')
-rw-r--r--templates/renew/dhcp/interface/node.tag/node.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/renew/dhcp/interface/node.tag/node.def b/templates/renew/dhcp/interface/node.tag/node.def
index 460e2f6..3bc5993 100644
--- a/templates/renew/dhcp/interface/node.tag/node.def
+++ b/templates/renew/dhcp/interface/node.tag/node.def
@@ -1,4 +1,9 @@
help: Renew DHCP IP address lease for specified interface
+allowed:
+ local -a array ;
+ array=( /var/lib/dhcp3/eth* ) ;
+ echo -n ${array[@]##*/}
+
run:
IFNAME=${4}
/opt/vyatta/sbin/vyatta-interfaces.pl --op-command dhcp-renew --dev $IFNAME