summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-07 08:27:34 +0100
committerGitHub <noreply@github.com>2023-11-07 08:27:34 +0100
commit56e2864bf29f25a0dd4195bb7f4d42e74ca66644 (patch)
treee2e9f69bd6c75dcf2b235b29ae03769fe424ca0a
parent7a4d59acaf62908a20f7aa143816c608f5479fb2 (diff)
parent0c63e1784468638a962590600b69ff8338d453bd (diff)
downloadvyos-1x-56e2864bf29f25a0dd4195bb7f4d42e74ca66644.tar.gz
vyos-1x-56e2864bf29f25a0dd4195bb7f4d42e74ca66644.zip
Merge pull request #2448 from vyos/mergify/bp/sagitta/pr-2447
mdns: T5719: Add op-mode commands to mDNS repeater (backport #2447)
-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>