summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-command.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-06-26 15:29:43 +0100
committerGitHub <noreply@github.com>2025-06-26 15:29:43 +0100
commit062f7f4e7cd7d71cba56d168f9f99344e9044b59 (patch)
treef17a96f9726cdffcb2ef2fab10309f4b313ed8cc /op-mode-definitions/monitor-command.xml.in
parent5c2f70ffd82047740a91be949af5098a6ee39c2c (diff)
parentedc64e7fb63757a3779df12945ecefca9c462952 (diff)
downloadvyos-1x-062f7f4e7cd7d71cba56d168f9f99344e9044b59.tar.gz
vyos-1x-062f7f4e7cd7d71cba56d168f9f99344e9044b59.zip
Merge pull request #4565 from dmbaturin/T7560-op-virtual-tag-nodes
op-mode: T7560: add support for virtual tag nodes
Diffstat (limited to 'op-mode-definitions/monitor-command.xml.in')
-rw-r--r--op-mode-definitions/monitor-command.xml.in29
1 files changed, 17 insertions, 12 deletions
diff --git a/op-mode-definitions/monitor-command.xml.in b/op-mode-definitions/monitor-command.xml.in
index 31c68f029..ba242386e 100644
--- a/op-mode-definitions/monitor-command.xml.in
+++ b/op-mode-definitions/monitor-command.xml.in
@@ -2,26 +2,31 @@
<interfaceDefinition>
<node name="monitor">
<children>
- <tagNode name="command">
+ <node name="command">
<properties>
- <help>Monitor operational mode command (refreshes every 2 seconds)</help>
+ <help>Monitor operational mode command output</help>
</properties>
- <command>watch --no-title ${vyos_op_scripts_dir}/vyos-op-cmd-wrapper.sh ${@:3}</command>
- </tagNode>
- <node name="command">
<children>
+ <virtualTagNode>
+ <properties>
+ <help>Monitor operational mode command (refreshes every 2 seconds)</help>
+ </properties>
+ <command>watch --no-title ${vyos_op_scripts_dir}/vyos-op-cmd-wrapper.sh ${@:3}</command>
+ </virtualTagNode>
<node name="diff">
<properties>
<help>Show differences during each run</help>
</properties>
+ <children>
+ <virtualTagNode>
+ <properties>
+ <help>Monitor operational mode command (refreshes every 2 seconds)</help>
+ </properties>
+ <command>watch --no-title --differences ${vyos_op_scripts_dir}/vyos-op-cmd-wrapper.sh ${@:4}</command>
+ </virtualTagNode>
+ </children>
</node>
- <tagNode name="diff">
- <properties>
- <help>Monitor operational mode command (refreshes every 2 seconds)</help>
- </properties>
- <command>watch --no-title --differences ${vyos_op_scripts_dir}/vyos-op-cmd-wrapper.sh ${@:4}</command>
- </tagNode>
- </children>
+ </children>
</node>
</children>
</node>