summaryrefslogtreecommitdiff
path: root/op-mode-definitions/vrrp.xml.in
blob: 856fb440d4b26c54144bcf0995a3a0d069c79ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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>