summaryrefslogtreecommitdiff
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
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 <>'
-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
-rw-r--r--templates/renew/dhcp/interface/node.def1
-rw-r--r--templates/renew/dhcp/interface/node.tag/node.def5
-rw-r--r--templates/renew/dhcp/node.def1
-rw-r--r--templates/renew/node.def1
8 files changed, 15 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
diff --git a/templates/renew/dhcp/interface/node.def b/templates/renew/dhcp/interface/node.def
new file mode 100644
index 0000000..87993a9
--- /dev/null
+++ b/templates/renew/dhcp/interface/node.def
@@ -0,0 +1 @@
+help: Renew DHCP client lease for specified interface
diff --git a/templates/renew/dhcp/interface/node.tag/node.def b/templates/renew/dhcp/interface/node.tag/node.def
new file mode 100644
index 0000000..460e2f6
--- /dev/null
+++ b/templates/renew/dhcp/interface/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Renew DHCP IP address lease for specified interface
+run:
+ IFNAME=${4}
+ /opt/vyatta/sbin/vyatta-interfaces.pl --op-command dhcp-renew --dev $IFNAME
+
diff --git a/templates/renew/dhcp/node.def b/templates/renew/dhcp/node.def
new file mode 100644
index 0000000..78b64fb
--- /dev/null
+++ b/templates/renew/dhcp/node.def
@@ -0,0 +1 @@
+help: Renew DHCP client lease
diff --git a/templates/renew/node.def b/templates/renew/node.def
new file mode 100644
index 0000000..9b4c9d4
--- /dev/null
+++ b/templates/renew/node.def
@@ -0,0 +1 @@
+help: Renew specified variable