summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-bandwidth-test.xml.in
blob: 5b36b1da5e94cfff3a5e3865aaeb1f30512e10c6 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="bandwidth-test">
        <properties>
          <help>Initiate or wait for bandwidth test</help>
        </properties>
        <children>
          <leafNode name="accept">
            <properties>
              <help>Wait for bandwidth test connections (port TCP/5001)</help>
            </properties>
            <command>/usr/bin/iperf -V -s</command>
          </leafNode>
          <tagNode name="initiate">
            <properties>
              <help>Initiate a bandwidth test to specified host (port TCP/5001)</help>
              <completionHelp>
                <list>&lt;hostname&gt; &lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
              </completionHelp>
            </properties>
            <command>${vyos_op_scripts_dir}/monitor_bandwidth_test.sh "$4"</command>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>