diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-01 21:08:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-01 21:08:23 +0200 |
commit | 78fad655a3894a59880a0385b1b7fd0226eb27ee (patch) | |
tree | 5ed50949f1e19804f9aeaf7801710fcaf56498e8 /op-mode-definitions/dns-dynamic.xml | |
parent | 2c206078aeb5d0aa757547b0633a370a9ca3ff70 (diff) | |
download | vyos-1x-78fad655a3894a59880a0385b1b7fd0226eb27ee.tar.gz vyos-1x-78fad655a3894a59880a0385b1b7fd0226eb27ee.zip |
dns: dynamic: op-mode: provide "restart dns dynamic" command
... this is actually a copy of the weird "update dns dynamic" command. Some
users like restart more thus both CLI notions will call the same backend
script .
Diffstat (limited to 'op-mode-definitions/dns-dynamic.xml')
-rw-r--r-- | op-mode-definitions/dns-dynamic.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/op-mode-definitions/dns-dynamic.xml b/op-mode-definitions/dns-dynamic.xml index 2948e68d7..9c37874fb 100644 --- a/op-mode-definitions/dns-dynamic.xml +++ b/op-mode-definitions/dns-dynamic.xml @@ -38,6 +38,20 @@ </node> </children> </node> + <node name="restart"> + <children> + <node name="dns"> + <children> + <node name="dynamic"> + <properties> + <help>Restart Dynamic DNS service</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/dynamic_dns.py --update</command> + </node> + </children> + </node> + </children> + </node> <node name="update"> <properties> <help>Update data for a service</help> |