diff options
-rw-r--r-- | templates/release/dhcp/interface/node.tag/node.def | 5 | ||||
-rw-r--r-- | templates/renew/dhcp/interface/node.tag/node.def | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/release/dhcp/interface/node.tag/node.def b/templates/release/dhcp/interface/node.tag/node.def index 8f5fb61..a39a308 100644 --- a/templates/release/dhcp/interface/node.tag/node.def +++ b/templates/release/dhcp/interface/node.tag/node.def @@ -1,4 +1,9 @@ help: Release 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-release --dev $IFNAME 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 |