diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-07-27 01:17:25 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-07-27 01:17:25 +0200 |
commit | 3dba2d13e6ba7ced2a032b9fbb98984a44370f5f (patch) | |
tree | 6299bf0e5ff9d71285480ba1376804a07386eab5 /op-mode-definitions | |
parent | f9f1333e4c741451a8b53031812fcbdb167b4731 (diff) | |
download | vyos-1x-3dba2d13e6ba7ced2a032b9fbb98984a44370f5f.tar.gz vyos-1x-3dba2d13e6ba7ced2a032b9fbb98984a44370f5f.zip |
T666, T616: new implementation of the VRRP CLI.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/vrrp.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/op-mode-definitions/vrrp.xml b/op-mode-definitions/vrrp.xml new file mode 100644 index 000000000..856fb440d --- /dev/null +++ b/op-mode-definitions/vrrp.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="vrrp"> + <properties> + <help>Show VRRP (Virtual Router Redundancy Protocol) information</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/vrrp.py --summary</command> + <children> + <node name="statistics"> + <properties> + <help>Show VRRP statistics</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/vrrp.py --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> + </node> + </children> + </node> + </children> + </node> + <node name="restart"> + <children> + <node name="vrrp"> + <properties> + <help>Restart the VRRP (Virtual Router Redundancy Protocol) process</help> + </properties> + <command>sudo systemctl restart keepalived.service</command> + </node> + </children> + </node> +</interfaceDefinition> |