summaryrefslogtreecommitdiff
path: root/templates/release
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-06-20 22:58:12 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-06-20 22:58:12 +0000
commit831845a659ffe6d054d09d19364021519f211a23 (patch)
treed2ca8453930da1e91e4a597fbb4091430edd3bf2 /templates/release
parent1772280e0ca4db5b3cc4202f92cc49b49d25d66f (diff)
downloadvyatta-op-831845a659ffe6d054d09d19364021519f211a23.tar.gz
vyatta-op-831845a659ffe6d054d09d19364021519f211a23.zip
Fix bug 3059 Operator Level commands for DHCP client
implemented op-mode commands for DHCP client: 'release dhcp interface <>' 'renew dhcp interface <>'
Diffstat (limited to 'templates/release')
-rw-r--r--templates/release/dhcp/interface/node.def1
-rw-r--r--templates/release/dhcp/interface/node.tag/node.def4
-rw-r--r--templates/release/dhcp/node.def1
-rw-r--r--templates/release/node.def1
4 files changed, 7 insertions, 0 deletions
diff --git a/templates/release/dhcp/interface/node.def b/templates/release/dhcp/interface/node.def
new file mode 100644
index 0000000..e65989f
--- /dev/null
+++ b/templates/release/dhcp/interface/node.def
@@ -0,0 +1 @@
+help: Release DHCP client lease for specified interface
diff --git a/templates/release/dhcp/interface/node.tag/node.def b/templates/release/dhcp/interface/node.tag/node.def
new file mode 100644
index 0000000..8f5fb61
--- /dev/null
+++ b/templates/release/dhcp/interface/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Release DHCP IP address lease for specified interface
+run:
+ IFNAME=${4}
+ /opt/vyatta/sbin/vyatta-interfaces.pl --op-command dhcp-release --dev $IFNAME
diff --git a/templates/release/dhcp/node.def b/templates/release/dhcp/node.def
new file mode 100644
index 0000000..03365d7
--- /dev/null
+++ b/templates/release/dhcp/node.def
@@ -0,0 +1 @@
+help: Release DHCP client lease
diff --git a/templates/release/node.def b/templates/release/node.def
new file mode 100644
index 0000000..36c8901
--- /dev/null
+++ b/templates/release/node.def
@@ -0,0 +1 @@
+help: Release specified variable