summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-28 16:58:43 +0100
committerGitHub <noreply@github.com>2023-12-28 16:58:43 +0100
commita3fbed67c1e10c4d2e85df610be95ec6fe9e2ca2 (patch)
treea9ad1ed28cce489b8de7b30d20d9e19b61857d21 /op-mode-definitions
parent405cc66041d8035500f7b7116301983c48464a9b (diff)
parent9d15c7d3fb21648a52b9c06bdc0a5055f8099119 (diff)
downloadvyos-1x-a3fbed67c1e10c4d2e85df610be95ec6fe9e2ca2.tar.gz
vyos-1x-a3fbed67c1e10c4d2e85df610be95ec6fe9e2ca2.zip
Merge pull request #2698 from c-po/t5866-radvd
op-mode: T5866: Add command to restart IPv6 RA daemon
Diffstat (limited to 'op-mode-definitions')
-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>