summaryrefslogtreecommitdiff
path: root/op-mode-definitions/mdns-reflector.xml.in
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-11-06 19:18:52 -0600
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-11-07 06:17:43 +0000
commit0c63e1784468638a962590600b69ff8338d453bd (patch)
treee2e9f69bd6c75dcf2b235b29ae03769fe424ca0a /op-mode-definitions/mdns-reflector.xml.in
parent7a4d59acaf62908a20f7aa143816c608f5479fb2 (diff)
downloadvyos-1x-0c63e1784468638a962590600b69ff8338d453bd.tar.gz
vyos-1x-0c63e1784468638a962590600b69ff8338d453bd.zip
mdns: T5719: Add op-mode commands to mDNS repeater
The following ones are available now: - restart mdns repeater - show log mdns repeater - monitor log mdns repeater (cherry picked from commit ace8a25552fa7f2b2369a385ed8933feb66f355b)
Diffstat (limited to 'op-mode-definitions/mdns-reflector.xml.in')
-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>