summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-bandwidth.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-10 20:35:15 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-07-11 19:12:43 +0000
commit6a778aa8d5bb9137dadb987efee3ef6bafb42bb1 (patch)
tree2c5e0d3547f77c2a51f49b51fe1cbb5db90ac267 /op-mode-definitions/monitor-bandwidth.xml.in
parent423e710e6d6962249c72bd3b8c6f09e0e127779d (diff)
downloadvyos-1x-6a778aa8d5bb9137dadb987efee3ef6bafb42bb1.tar.gz
vyos-1x-6a778aa8d5bb9137dadb987efee3ef6bafb42bb1.zip
op-mode: T6566: add support for listing all interfaces in "monitor bandwidth"
Right now we can only monitor the bandwidth for one individual interface, but not all at once. This adds support to monitor all interfaces. (cherry picked from commit 7704af0c4454725e8c67138e5cabab3328bde0f8)
Diffstat (limited to 'op-mode-definitions/monitor-bandwidth.xml.in')
-rw-r--r--op-mode-definitions/monitor-bandwidth.xml.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/op-mode-definitions/monitor-bandwidth.xml.in b/op-mode-definitions/monitor-bandwidth.xml.in
index 2da9d34f4..fc1d751d6 100644
--- a/op-mode-definitions/monitor-bandwidth.xml.in
+++ b/op-mode-definitions/monitor-bandwidth.xml.in
@@ -6,9 +6,10 @@
<properties>
<help>Monitor interface bandwidth in real time</help>
</properties>
+ <command>bmon --use-bit</command>
<children>
<tagNode name="interface">
- <command>bmon -b -p $4</command>
+ <command>bmon --use-bit --policy $4</command>
<properties>
<help>Monitor bandwidth usage on specified interface</help>
<completionHelp>