summaryrefslogtreecommitdiff
path: root/templates/service/dns/dynamic/interface/node.def
blob: 3567134f6ce349d276aa50e057c1a1d23761326d (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 [REQUIRED]
type: txt
allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=all
commit:expression: $VAR(./@/service/@@) != ""; "At least one service must be set to send DDNS updates for $VAR(@)"
commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --warn"

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