diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-21 01:21:34 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-21 01:21:34 +0000 |
commit | a0aacbcb65bae15ddcf9d2af2fdea4da84210592 (patch) | |
tree | 87ddfb777d905af235e5a613e8cafe46046ba8a6 /templates/renew | |
parent | 831845a659ffe6d054d09d19364021519f211a23 (diff) | |
download | vyatta-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.def | 5 |
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 |