From 62c18e56f77bd8c44a3e214817067f5dd752ff01 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sat, 7 Mar 2015 16:30:40 +0000 Subject: 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 --- templates/service/dns/dynamic/interface/node.tag/service/node.def | 2 +- .../dns/dynamic/interface/node.tag/service/node.tag/protocol/node.def | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'templates/service') 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: ; ddclient protocol (see ddclient manual) + +allowed: /opt/vyatta/sbin/vyatta-dynamic-dns.pl --interface $VAR(../@) --get-protocols + \ No newline at end of file -- cgit v1.2.3