summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-16 11:53:03 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-16 11:53:03 -0800
commit735f56914eeb409dcf850662d4e60db462fb7213 (patch)
tree99284f98c56678f53186e9b0ed1be436c52eabc3 /templates
parentd14f9f0c60e08350283ac3e15171fb996709fcae (diff)
downloadvyatta-op-735f56914eeb409dcf850662d4e60db462fb7213.tar.gz
vyatta-op-735f56914eeb409dcf850662d4e60db462fb7213.zip
Use new cleaner command arguments
This makes templates easier to read.
Diffstat (limited to 'templates')
-rw-r--r--templates/release/dhcp/interface/node.tag/node.def4
-rw-r--r--templates/renew/dhcp/interface/node.tag/node.def4
2 files changed, 2 insertions, 6 deletions
diff --git a/templates/release/dhcp/interface/node.tag/node.def b/templates/release/dhcp/interface/node.tag/node.def
index 834e682..a5cd912 100644
--- a/templates/release/dhcp/interface/node.tag/node.def
+++ b/templates/release/dhcp/interface/node.tag/node.def
@@ -4,6 +4,4 @@ allowed:
array=( /var/lib/dhcp3/eth* /var/lib/dhcp3/br* /var/lib/dhcp3/bond* ) ;
echo -n ${array[@]##*/}
-run:
- IFNAME=${4}
- sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --op-command "dhcp-release" --dev "$IFNAME"
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --dhcp release --dev "$4"
diff --git a/templates/renew/dhcp/interface/node.tag/node.def b/templates/renew/dhcp/interface/node.tag/node.def
index 84e4cc0..ab6494d 100644
--- a/templates/renew/dhcp/interface/node.tag/node.def
+++ b/templates/renew/dhcp/interface/node.tag/node.def
@@ -4,6 +4,4 @@ allowed:
array=( /var/lib/dhcp3/eth* /var/lib/dhcp3/br* /var/lib/dhcp3/bond* ) ;
echo -n ${array[@]##*/}
-run:
- IFNAME=${4}
- sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --op-command "dhcp-renew" --dev "$IFNAME"
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --dhcp renew --dev "$4"