diff options
| author | Daniil Baturin <daniil@baturin.org> | 2025-06-25 17:35:01 +0100 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2025-06-25 17:35:01 +0100 |
| commit | edc64e7fb63757a3779df12945ecefca9c462952 (patch) | |
| tree | 2f06526c4b8760c71707bb4b67c35f562f95245b /op-mode-definitions/monitor-command.xml.in | |
| parent | 195651aababa371d67c6e1608094891227a5bd18 (diff) | |
| download | vyos-1x-edc64e7fb63757a3779df12945ecefca9c462952.tar.gz vyos-1x-edc64e7fb63757a3779df12945ecefca9c462952.zip | |
op-mode: T7560: add support for virtual tag nodes
for cases when commands need both fixed and variable arguments
Diffstat (limited to 'op-mode-definitions/monitor-command.xml.in')
| -rw-r--r-- | op-mode-definitions/monitor-command.xml.in | 29 |
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> |
