summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-acceleration.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-12-17 09:58:22 +0100
committerChristian Poessinger <christian@poessinger.com>2022-12-17 10:37:01 +0100
commita3444c686427e94e90b531da0a9effc025925f6f (patch)
treead8d6b8c8aacd08317ef713d83da151aa1a99d93 /op-mode-definitions/show-acceleration.xml.in
parentc8d0b28fba898a383896497904b28e2ce70aa1cd (diff)
downloadvyos-1x-a3444c686427e94e90b531da0a9effc025925f6f.tar.gz
vyos-1x-a3444c686427e94e90b531da0a9effc025925f6f.zip
op-mode: T4767: drop sudo calls when working with QAT/acceleration subsystem
As the API daemon has the proper permissions and also the CLI op-mode calls the script already with "sudo", there is no need to call "sudo" inside this script, again.
Diffstat (limited to 'op-mode-definitions/show-acceleration.xml.in')
-rw-r--r--op-mode-definitions/show-acceleration.xml.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/op-mode-definitions/show-acceleration.xml.in b/op-mode-definitions/show-acceleration.xml.in
index d0dcea2d6..6fd3babf5 100644
--- a/op-mode-definitions/show-acceleration.xml.in
+++ b/op-mode-definitions/show-acceleration.xml.in
@@ -29,13 +29,13 @@
<properties>
<help>Intel QAT flows</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_acceleration.py --flow --dev $6</command>
+ <command>sudo ${vyos_op_scripts_dir}/show_acceleration.py --flow --dev $6</command>
</node>
<node name="config">
<properties>
<help>Intel QAT configuration</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_acceleration.py --conf --dev $6</command>
+ <command>sudo ${vyos_op_scripts_dir}/show_acceleration.py --conf --dev $6</command>
</node>
</children>
</tagNode>
@@ -43,16 +43,16 @@
<properties>
<help>Intel QAT status</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_acceleration.py --status</command>
+ <command>sudo ${vyos_op_scripts_dir}/show_acceleration.py --status</command>
</node>
<node name="interrupts">
<properties>
<help>Intel QAT interrupts</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_acceleration.py --interrupts</command>
+ <command>sudo ${vyos_op_scripts_dir}/show_acceleration.py --interrupts</command>
</node>
</children>
- <command>${vyos_op_scripts_dir}/show_acceleration.py --hw</command>
+ <command>sudo ${vyos_op_scripts_dir}/show_acceleration.py --hw</command>
</node>
</children>
</node>