summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-bandwidth-test.xml.in
blob: 965591280021c18027526f513833c524d05d4d72 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="bandwidth-test">
        <properties>
          <help>Initiate or wait for bandwidth test</help>
        </properties>
        <children>
          <node name="accept">
            <properties>
              <help>Wait for bandwidth test connections (port TCP/5001)</help>
            </properties>
            <command>/usr/bin/iperf -V -s</command>
            <children>
              <leafNode name="tcp">
                <properties>
                  <help>Wait for bandwidth test connections (port TCP/5001)</help>
                </properties>
                <command>/usr/bin/iperf -V -s</command>
              </leafNode>
              <leafNode name="udp">
                <properties>
                  <help>Wait for bandwidth test connections (port UDP/5001)</help>
                </properties>
                <command>/usr/bin/iperf -V -s -u</command>
              </leafNode>
            </children>
          </node>
          <node name="initiate">
            <properties>
              <help>Initiate a bandwidth test to specified host</help>
            </properties>
            <children>
              <tagNode name="tcp">
                <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 "$5"</command>
              </tagNode>
              <tagNode name="udp">
                <properties>
                  <help>Initiate a bandwidth test to specified host (port UDP/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 "$5" "-u"</command>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>