summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-15 03:25:17 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-15 03:25:17 +0200
commit3ebc8df88c4b6522a57694d0d77d1933ea9db714 (patch)
tree8cec18e7cd043260e5938220a0e7c35dd83920ee /op-mode-definitions
parentae0b5e5d142c03b2df544774aead9887d5610bf2 (diff)
downloadvyos-1x-3ebc8df88c4b6522a57694d0d77d1933ea9db714.tar.gz
vyos-1x-3ebc8df88c4b6522a57694d0d77d1933ea9db714.zip
T638: new op mode CLI for the bandwidth monitor commands.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/bandwidth-monitor.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/op-mode-definitions/bandwidth-monitor.xml b/op-mode-definitions/bandwidth-monitor.xml
new file mode 100644
index 000000000..a6ddcfd4b
--- /dev/null
+++ b/op-mode-definitions/bandwidth-monitor.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 -p $4</command>
+ <properties>
+ <help>Monitor bandwidth usage on specified interface</help>
+ <completionHelp>
+ <script>${vyos_bindir}/vyos-list-interfaces.py</script>
+ </completionHelp>
+ </properties>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>