summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/intel_qat.py6
-rwxr-xr-xsrc/op_mode/show_acceleration.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/conf_mode/intel_qat.py b/src/conf_mode/intel_qat.py
index 1ceab0a87..0b2d318fd 100755
--- a/src/conf_mode/intel_qat.py
+++ b/src/conf_mode/intel_qat.py
@@ -59,7 +59,7 @@ def vpn_control(action):
def verify(c):
# Check if QAT service installed
- if not os.path.exists('/etc/init.d/vyos-qat-utilities'):
+ if not os.path.exists('/etc/init.d/qat_service'):
raise ConfigError("Warning: QAT init file not found")
if c['qat_conf'] == None:
@@ -81,13 +81,13 @@ def apply(c):
# Disable QAT service
if c['qat_conf'] == None:
- run('sudo /etc/init.d/vyos-qat-utilities stop')
+ run('sudo /etc/init.d/qat_service stop')
if c['ipsec_conf']:
vpn_control('start')
return
# Run qat init.d script
- run('sudo /etc/init.d/vyos-qat-utilities start')
+ run('sudo /etc/init.d/qat_service start')
if c['ipsec_conf']:
# Recovery VPN service
vpn_control('start')
diff --git a/src/op_mode/show_acceleration.py b/src/op_mode/show_acceleration.py
index 6d44b0f66..752db3deb 100755
--- a/src/op_mode/show_acceleration.py
+++ b/src/op_mode/show_acceleration.py
@@ -39,16 +39,16 @@ def show_qat_status():
detect_qat_dev()
# Check QAT service
- if not os.path.exists('/etc/init.d/vyos-qat-utilities'):
+ if not os.path.exists('/etc/init.d/qat_service'):
print("\t QAT service not installed")
sys.exit(1)
# Show QAT service
- call('sudo /etc/init.d/vyos-qat-utilities status')
+ call('sudo /etc/init.d/qat_service status')
# Return QAT devices
def get_qat_devices():
- data_st, err = popen('sudo /etc/init.d/vyos-qat-utilities status', decode='utf-8')
+ data_st, err = popen('sudo /etc/init.d/qat_service status', decode='utf-8')
if not err:
elm_lst = re.findall('qat_dev\d', data_st)
print('\n'.join(elm_lst))
@@ -57,7 +57,7 @@ def get_qat_devices():
def get_qat_proc_path(qat_dev):
q_type = ""
q_bsf = ""
- output, err = popen('sudo /etc/init.d/vyos-qat-utilities status', decode='utf-8')
+ output, err = popen('sudo /etc/init.d/qat_service status', decode='utf-8')
if not err:
# Parse QAT service output
data_st = output.split("\n")