summaryrefslogtreecommitdiff
path: root/op-mode-definitions/sflow.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-03-31 13:09:21 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-03-31 13:09:21 +0000
commit657f5c1a08351c7740ff74cc112321d8f4e2155c (patch)
tree22ebbb1db28fba746fe7b4e5717e329db6974b72 /op-mode-definitions/sflow.xml.in
parentfdfaa680ef77a469698bfd30c56131710e637253 (diff)
downloadvyos-1x-657f5c1a08351c7740ff74cc112321d8f4e2155c.tar.gz
vyos-1x-657f5c1a08351c7740ff74cc112321d8f4e2155c.zip
T5125: Add op-mode for sFlow based on hsflowd
Add op-mode for sFlow based on hsflowd "show sflow" Add machine readable format '--raw' and formatted output
Diffstat (limited to 'op-mode-definitions/sflow.xml.in')
-rw-r--r--op-mode-definitions/sflow.xml.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/op-mode-definitions/sflow.xml.in b/op-mode-definitions/sflow.xml.in
new file mode 100644
index 000000000..9f02dacda
--- /dev/null
+++ b/op-mode-definitions/sflow.xml.in
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- sflow op mode commands -->
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="sflow">
+ <properties>
+ <help>Show sFlow statistics</help>
+ </properties>
+ <!-- requires sudo, do not remove it -->
+ <command>sudo ${vyos_op_scripts_dir}/sflow.py show</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>