summaryrefslogtreecommitdiff
path: root/templates/service
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-03-07 16:30:40 +0000
committerAlex Harpin <development@landsofshadow.co.uk>2015-03-07 20:30:55 +0000
commit62c18e56f77bd8c44a3e214817067f5dd752ff01 (patch)
treec7ad4e396c79fb50255321a0200ad794fa3439f0 /templates/service
parent11271a85c4ce345813e7f8bc4fd74c2ae3c7f1c5 (diff)
downloadvyatta-cfg-system-62c18e56f77bd8c44a3e214817067f5dd752ff01.tar.gz
vyatta-cfg-system-62c18e56f77bd8c44a3e214817067f5dd752ff01.zip
vyatta-cfg-system: add additional services and check for protocols
Add the additional services that are supported by ddclient to the list of service defaults. Also add a function to use this list to check for the allowed protocols, and update the protocol node to use this. Bug #507 http://bugzilla.vyos.net/show_bug.cgi?id=507
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/dns/dynamic/interface/node.tag/service/node.def2
-rw-r--r--templates/service/dns/dynamic/interface/node.tag/service/node.tag/protocol/node.def3
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/service/dns/dynamic/interface/node.tag/service/node.def b/templates/service/dns/dynamic/interface/node.tag/service/node.def
index 85208d2e..32802065 100644
--- a/templates/service/dns/dynamic/interface/node.tag/service/node.def
+++ b/templates/service/dns/dynamic/interface/node.tag/service/node.def
@@ -4,6 +4,6 @@ type: txt
val_help: txt; Custom or predefined service
-allowed:/opt/vyatta/sbin/vyatta-dynamic-dns.pl --interface $VAR(../@) --get-services
+allowed: /opt/vyatta/sbin/vyatta-dynamic-dns.pl --interface $VAR(../@) --get-services
commit:expression: exec "/opt/vyatta/sbin/vyatta-dynamic-dns.pl --interface $VAR(../@) --check-nodes"
diff --git a/templates/service/dns/dynamic/interface/node.tag/service/node.tag/protocol/node.def b/templates/service/dns/dynamic/interface/node.tag/service/node.tag/protocol/node.def
index 0c216d8d..55fbff5b 100644
--- a/templates/service/dns/dynamic/interface/node.tag/service/node.tag/protocol/node.def
+++ b/templates/service/dns/dynamic/interface/node.tag/service/node.tag/protocol/node.def
@@ -1,3 +1,6 @@
help: ddclient protocol to be used for dynamic dns service [REQUIRED FOR CUSTOM SERVICES]
type: txt
val_help: <protocol>; ddclient protocol (see ddclient manual)
+
+allowed: /opt/vyatta/sbin/vyatta-dynamic-dns.pl --interface $VAR(../@) --get-protocols
+ \ No newline at end of file