summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-07 07:16:51 +0100
committerGitHub <noreply@github.com>2023-11-07 07:16:51 +0100
commitee46dbadb586a56dade7db466ea0a4b21f978b61 (patch)
tree9e07bb32ebe17560b1b115c0487d0f3ee1b39f64
parent9bdcf318cc4c70d21d71bd3ae1795e2f5080e00c (diff)
parentace8a25552fa7f2b2369a385ed8933feb66f355b (diff)
downloadvyos-1x-ee46dbadb586a56dade7db466ea0a4b21f978b61.tar.gz
vyos-1x-ee46dbadb586a56dade7db466ea0a4b21f978b61.zip
Merge pull request #2447 from indrajitr/mdns-log-monitor
mdns: T5719: Add op-mode commands to mDNS repeater
-rw-r--r--op-mode-definitions/mdns-reflector.xml.in62
1 files changed, 62 insertions, 0 deletions
diff --git a/op-mode-definitions/mdns-reflector.xml.in b/op-mode-definitions/mdns-reflector.xml.in
new file mode 100644
index 000000000..a90d4d385
--- /dev/null
+++ b/op-mode-definitions/mdns-reflector.xml.in
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="monitor">
+ <children>
+ <node name="log">
+ <children>
+ <node name="mdns">
+ <properties>
+ <help>Monitor last lines of multicast Domain Name System related services</help>
+ </properties>
+ <children>
+ <node name="repeater">
+ <properties>
+ <help>Monitor last lines of mDNS repeater service</help>
+ </properties>
+ <command>journalctl --no-hostname --follow --boot --unit avahi-daemon.service</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="show">
+ <children>
+ <node name="log">
+ <children>
+ <node name="mdns">
+ <properties>
+ <help>Show log for multicast Domain Name System related services</help>
+ </properties>
+ <children>
+ <node name="repeater">
+ <properties>
+ <help>Show log for mDNS repeater service</help>
+ </properties>
+ <command>journalctl --no-hostname --boot --unit avahi-daemon.service</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="restart">
+ <children>
+ <node name="mdns">
+ <properties>
+ <help>Restart specific multicast Domain Name System service</help>
+ </properties>
+ <children>
+ <node name="repeater">
+ <properties>
+ <help>Restart mDNS repeater service</help>
+ </properties>
+ <command>sudo systemctl restart avahi-daemon.service</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>