summaryrefslogtreecommitdiff
path: root/templates/service/dns/dynamic/interface/node.def
blob: c402e483e9bde72f0c8b98b90480d6f75833b758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tag:
help: Set interface to send DDNS updates for
type: txt
allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=all
syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=all"
commit:expression: $VAR(./@/service/@@) != ""; "At least one service must be set to send DDNS updates for $VAR(@)"

delete:touch /tmp/ddclient_$VAR(@).$PPID

end: if [ -f /tmp/ddclient_$VAR(@).$PPID ]; then
        sudo /opt/vyatta/sbin/vyatta-dynamic-dns.pl --stop-dynamicdns --interface $VAR(@)
        rm /tmp/ddclient_$VAR(@).$PPID
     else
        sudo /opt/vyatta/sbin/vyatta-dynamic-dns.pl --update-dynamicdns --interface $VAR(@)
     fi