Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6632: add missing standard functions to config scripts (backport #3933) #3936

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions smoketest/scripts/cli/test_configd_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def test_signatures(self):
m = import_script(s)
for i in f_list:
f = getattr(m, i, None)
if not f:
continue
self.assertIsNotNone(f, f"'{s}': missing function '{i}'")
sig = signature(f)
par = sig.parameters
l = len(par)
Expand Down
3 changes: 3 additions & 0 deletions src/conf_mode/interfaces_wireguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def verify(wireguard):

public_keys.append(peer['public_key'])

def generate(wireguard):
return None

def apply(wireguard):
if 'rebuild_required' in wireguard or 'deleted' in wireguard:
wg = WireGuardIf(**wireguard)
Expand Down
3 changes: 3 additions & 0 deletions src/conf_mode/system_acceleration.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def verify(qat):
if not data:
raise ConfigError('No QAT acceleration device found')

def generate(qat):
return

def apply(qat):
# Shutdown VPN service which can use QAT
if 'ipsec' in qat:
Expand Down
Loading