summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-09-07 04:15:58 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-09-07 04:15:58 +0000
commit7e5b2d590d663c40b6d1a1c4a370b0c0bb770f8c (patch)
tree0d85102c45f69e5f0d27b2175d6adf2d9ca8e1be /templates
parent15c75d023be453a717aefc82f02b6ef6fd8b7ace (diff)
downloadvyatta-op-7e5b2d590d663c40b6d1a1c4a370b0c0bb770f8c.tar.gz
vyatta-op-7e5b2d590d663c40b6d1a1c4a370b0c0bb770f8c.zip
add code for op-mode Dynamic DNS commands
Diffstat (limited to 'templates')
-rw-r--r--templates/show/dns/dynamic/node.def1
-rw-r--r--templates/show/dns/dynamic/status/node.def3
-rw-r--r--templates/update/dns/dynamic/interface/node.def1
-rw-r--r--templates/update/dns/dynamic/interface/node.tag/node.def6
-rw-r--r--templates/update/dns/dynamic/node.def1
-rw-r--r--templates/update/dns/node.def1
6 files changed, 13 insertions, 0 deletions
diff --git a/templates/show/dns/dynamic/node.def b/templates/show/dns/dynamic/node.def
new file mode 100644
index 0000000..9a06b38
--- /dev/null
+++ b/templates/show/dns/dynamic/node.def
@@ -0,0 +1 @@
+help: Show Dynamic DNS information
diff --git a/templates/show/dns/dynamic/status/node.def b/templates/show/dns/dynamic/status/node.def
new file mode 100644
index 0000000..870c883
--- /dev/null
+++ b/templates/show/dns/dynamic/status/node.def
@@ -0,0 +1,3 @@
+help: Show Dynamic DNS status
+run:
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dynamic-dns.pl --show-status
diff --git a/templates/update/dns/dynamic/interface/node.def b/templates/update/dns/dynamic/interface/node.def
new file mode 100644
index 0000000..c0ef660
--- /dev/null
+++ b/templates/update/dns/dynamic/interface/node.def
@@ -0,0 +1 @@
+help: Update Dynamic DNS for specified interface
diff --git a/templates/update/dns/dynamic/interface/node.tag/node.def b/templates/update/dns/dynamic/interface/node.tag/node.def
new file mode 100644
index 0000000..60fb67d
--- /dev/null
+++ b/templates/update/dns/dynamic/interface/node.tag/node.def
@@ -0,0 +1,6 @@
+help: Update Dynamic DNS for specified interface
+allowed:
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dynamic-dns.pl --show-interfaces
+run:
+ IFNAME=${5}
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dynamic-dns.pl --update-ddns --interface "$IFNAME"
diff --git a/templates/update/dns/dynamic/node.def b/templates/update/dns/dynamic/node.def
new file mode 100644
index 0000000..447fcb5
--- /dev/null
+++ b/templates/update/dns/dynamic/node.def
@@ -0,0 +1 @@
+help: Update Dynamic DNS information
diff --git a/templates/update/dns/node.def b/templates/update/dns/node.def
new file mode 100644
index 0000000..b8217f6
--- /dev/null
+++ b/templates/update/dns/node.def
@@ -0,0 +1 @@
+help: Update DNS information