summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-24 07:03:17 +0200
committerGitHub <noreply@github.com>2024-10-24 07:03:17 +0200
commitceb64f3dca08a14ea4ea407844103e81f8e4648a (patch)
treed9ac43a1e5dfeb4cb0e239b6b64c4088fbb69a95 /op-mode-definitions
parent3710c5879f5733d05aae6e156f74d62b73821b2d (diff)
parenta5a484a50f976b4df7abd0a00a89dfb1512d84cb (diff)
downloadvyos-1x-ceb64f3dca08a14ea4ea407844103e81f8e4648a.tar.gz
vyos-1x-ceb64f3dca08a14ea4ea407844103e81f8e4648a.zip
Merge pull request #4155 from HollyGurza/T4583
T4583: Rewrite VRRP op-mode to vyos.opmode format
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/vrrp.xml.in25
1 files changed, 22 insertions, 3 deletions
diff --git a/op-mode-definitions/vrrp.xml.in b/op-mode-definitions/vrrp.xml.in
index 158e7093e..fb777b2e4 100644
--- a/op-mode-definitions/vrrp.xml.in
+++ b/op-mode-definitions/vrrp.xml.in
@@ -2,23 +2,42 @@
<interfaceDefinition>
<node name="show">
<children>
+ <tagNode name="vrrp">
+ <properties>
+ <help>Show specified VRRP (Virtual Router Redundancy Protocol) group information</help>
+ </properties>
+ <children>
+ <node name="statistics">
+ <properties>
+ <help>Show VRRP statistics</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/vrrp.py show_statistics --group-name="$3"</command>
+ </node>
+ <node name="detail">
+ <properties>
+ <help>Show detailed VRRP state information</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/vrrp.py show_detail --group-name="$3"</command>
+ </node>
+ </children>
+ </tagNode>
<node name="vrrp">
<properties>
<help>Show VRRP (Virtual Router Redundancy Protocol) information</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vrrp.py --summary</command>
+ <command>sudo ${vyos_op_scripts_dir}/vrrp.py show_summary</command>
<children>
<node name="statistics">
<properties>
<help>Show VRRP statistics</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vrrp.py --statistics</command>
+ <command>sudo ${vyos_op_scripts_dir}/vrrp.py show_statistics</command>
</node>
<node name="detail">
<properties>
<help>Show detailed VRRP state information</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/vrrp.py --data</command>
+ <command>sudo ${vyos_op_scripts_dir}/vrrp.py show_detail</command>
</node>
</children>
</node>