summaryrefslogtreecommitdiff
path: root/op-mode-definitions/reverse-proxy.xml.in
blob: 4af24880b86a64315f7e65801429ddd69ab058d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="restart">
    <children>
      <node name="reverse-proxy">
        <properties>
          <help>Restart reverse-proxy service</help>
        </properties>
        <command>if cli-shell-api existsActive load-balancing reverse-proxy; then sudo systemctl restart haproxy.service; else echo "Reverse-Proxy not configured"; fi</command>
      </node>
    </children>
  </node>
  <node name="show">
    <children>
      <node name="reverse-proxy">
        <properties>
          <help>Show load-balancing reverse-proxy</help>
        </properties>
        <command>sudo ${vyos_op_scripts_dir}/reverseproxy.py show</command>
      </node>
    </children>
  </node>
</interfaceDefinition>