summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-01-24 16:52:19 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-01-24 16:52:19 -0800
commit0e701835a01303a2044a81b82310c872b78ce5d0 (patch)
treead910da2b3ddb61548de647036cf5008b6d925b3 /templates
parent438186703df138f952422eb772c1753cd8c773f0 (diff)
downloadvyatta-op-0e701835a01303a2044a81b82310c872b78ce5d0.tar.gz
vyatta-op-0e701835a01303a2044a81b82310c872b78ce5d0.zip
add 'show dhcp client leases'
Diffstat (limited to 'templates')
-rw-r--r--templates/show/dhcp/client/interface/node.def1
-rw-r--r--templates/show/dhcp/client/interface/node.tag/node.def5
-rw-r--r--templates/show/dhcp/client/node.def2
-rw-r--r--templates/show/vrrp/interface/node.tag/node.def2
4 files changed, 9 insertions, 1 deletions
diff --git a/templates/show/dhcp/client/interface/node.def b/templates/show/dhcp/client/interface/node.def
new file mode 100644
index 0000000..458e0ec
--- /dev/null
+++ b/templates/show/dhcp/client/interface/node.def
@@ -0,0 +1 @@
+help: Show dhcp client information for a given interface
diff --git a/templates/show/dhcp/client/interface/node.tag/node.def b/templates/show/dhcp/client/interface/node.tag/node.def
new file mode 100644
index 0000000..03fd1d9
--- /dev/null
+++ b/templates/show/dhcp/client/interface/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Show dhcp client information for interface
+allowed: local -a array ;
+ array=( /sys/class/net/eth* ) ;
+ echo -n ${array[@]##*/}
+run: /opt/vyatta/bin/vyatta-show-dhclient.pl $5
diff --git a/templates/show/dhcp/client/node.def b/templates/show/dhcp/client/node.def
new file mode 100644
index 0000000..e94212f
--- /dev/null
+++ b/templates/show/dhcp/client/node.def
@@ -0,0 +1,2 @@
+help: Show dhcp client information
+run: /opt/vyatta/bin/vyatta-show-dhclient.pl
diff --git a/templates/show/vrrp/interface/node.tag/node.def b/templates/show/vrrp/interface/node.tag/node.def
index 8556884..05fbede 100644
--- a/templates/show/vrrp/interface/node.tag/node.def
+++ b/templates/show/vrrp/interface/node.tag/node.def
@@ -2,4 +2,4 @@ help: Show VRRP information for interface
allowed: local -a array ;
array=( /sys/class/net/eth* ) ;
echo -n ${array[@]##*/}
-run: /opt/vyatta/sbin/vyatta-show-vrrp.pl $4
+run: /opt/vyatta/sbin/vyatta-show-vrrp.pl $5