diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-30 19:29:08 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-30 19:29:08 +0200 |
commit | 196a4350e76e9e9cd8f214e5cc130017caf99ed6 (patch) | |
tree | 875d0aec625f02c1d6c3e84e37280efd4e6d820f | |
parent | c583b90dd5d21ed890ad3f8e71d0b5cf8d64b948 (diff) | |
download | vyos-1x-196a4350e76e9e9cd8f214e5cc130017caf99ed6.tar.gz vyos-1x-196a4350e76e9e9cd8f214e5cc130017caf99ed6.zip |
qat: use script file shipped from Intel
-rwxr-xr-x | src/conf_mode/intel_qat.py | 6 | ||||
-rwxr-xr-x | src/op_mode/show_acceleration.py | 8 |
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") |