summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-bandwidth.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-03 16:41:21 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-03 16:41:21 +0200
commit3e657ba2acf68c9adc1426cc1fcfeefb848cc8d2 (patch)
tree0f01f2d09fe5829adb72c56d04bca4d6211f5940 /op-mode-definitions/monitor-bandwidth.xml
parent787879baa0516ade8d9ad91f19e970c510d7aff3 (diff)
downloadvyos-1x-3e657ba2acf68c9adc1426cc1fcfeefb848cc8d2.tar.gz
vyos-1x-3e657ba2acf68c9adc1426cc1fcfeefb848cc8d2.zip
T2546: rename op-mode scripts for bandwidth
Diffstat (limited to 'op-mode-definitions/monitor-bandwidth.xml')
-rw-r--r--op-mode-definitions/monitor-bandwidth.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/op-mode-definitions/monitor-bandwidth.xml b/op-mode-definitions/monitor-bandwidth.xml
new file mode 100644
index 000000000..9af0a9e70
--- /dev/null
+++ b/op-mode-definitions/monitor-bandwidth.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="monitor">
+ <children>
+ <node name="bandwidth">
+ <properties>
+ <help>Monitor interface bandwidth in real time</help>
+ </properties>
+ <children>
+ <tagNode name="interface">
+ <command>bmon -b -p $4</command>
+ <properties>
+ <help>Monitor bandwidth usage on specified interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ </properties>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>