summaryrefslogtreecommitdiff
path: root/templates/renew
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-06-21 01:21:34 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-06-21 01:21:34 +0000
commita0aacbcb65bae15ddcf9d2af2fdea4da84210592 (patch)
tree87ddfb777d905af235e5a613e8cafe46046ba8a6 /templates/renew
parent831845a659ffe6d054d09d19364021519f211a23 (diff)
downloadvyatta-op-a0aacbcb65bae15ddcf9d2af2fdea4da84210592.tar.gz
vyatta-op-a0aacbcb65bae15ddcf9d2af2fdea4da84210592.zip
added code for allowed values for op-mode dhcp release/renew lease commands
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