summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-router-advert.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-28 17:38:45 +0100
committerGitHub <noreply@github.com>2023-12-28 17:38:45 +0100
commitd3e352d28d3e3bf4b5ba494530219dc0114d4df4 (patch)
tree7aae5b50d9b74280aead2b08c514d855d91ffc96 /op-mode-definitions/restart-router-advert.xml.in
parentdb108da1fb9f289968302a963a0e6a28ea243b49 (diff)
parentcaec40d9c8bc0b7e695001f918d52c1a044a2be8 (diff)
downloadvyos-1x-d3e352d28d3e3bf4b5ba494530219dc0114d4df4.tar.gz
vyos-1x-d3e352d28d3e3bf4b5ba494530219dc0114d4df4.zip
Merge pull request #2701 from vyos/mergify/bp/sagitta/pr-2698
op-mode: T5866: Add command to restart IPv6 RA daemon (backport #2698)
Diffstat (limited to 'op-mode-definitions/restart-router-advert.xml.in')
-rw-r--r--op-mode-definitions/restart-router-advert.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/restart-router-advert.xml.in b/op-mode-definitions/restart-router-advert.xml.in
new file mode 100644
index 000000000..304b4dfd3
--- /dev/null
+++ b/op-mode-definitions/restart-router-advert.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="restart">
+ <children>
+ <node name="router-advert">
+ <properties>
+ <help>Restart IPv6 Router Advertisement service</help>
+ </properties>
+ <command>if cli-shell-api existsActive service router-advert; then sudo systemctl restart radvd.service; else echo "IPv6 Router Advertisement service not configured"; fi</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>