diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-03 16:41:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-03 16:41:21 +0200 |
commit | 3e657ba2acf68c9adc1426cc1fcfeefb848cc8d2 (patch) | |
tree | 0f01f2d09fe5829adb72c56d04bca4d6211f5940 /op-mode-definitions/monitor-bandwidth-test.xml | |
parent | 787879baa0516ade8d9ad91f19e970c510d7aff3 (diff) | |
download | vyos-1x-3e657ba2acf68c9adc1426cc1fcfeefb848cc8d2.tar.gz vyos-1x-3e657ba2acf68c9adc1426cc1fcfeefb848cc8d2.zip |
T2546: rename op-mode scripts for bandwidth
Diffstat (limited to 'op-mode-definitions/monitor-bandwidth-test.xml')
-rw-r--r-- | op-mode-definitions/monitor-bandwidth-test.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/op-mode-definitions/monitor-bandwidth-test.xml b/op-mode-definitions/monitor-bandwidth-test.xml new file mode 100644 index 000000000..d1e459b17 --- /dev/null +++ b/op-mode-definitions/monitor-bandwidth-test.xml @@ -0,0 +1,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>iperf -s</command> + </leafNode> + <tagNode name="initiate"> + <properties> + <help>Initiate a bandwidth test to specified host (port TCP/5001)</help> + <completionHelp> + <list><hostname> <x.x.x.x> <h:h:h:h:h:h:h:h></list> + </completionHelp> + </properties> + <command>iperf -c $4</command> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |