summaryrefslogtreecommitdiff
path: root/src/conf_mode/nat.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-08-03 10:57:59 +0100
committerGitHub <noreply@github.com>2024-08-03 10:57:59 +0100
commitf5b4f5e8536ebab6d1b513367fce414502bda375 (patch)
tree90cd13578afe63188dd09e2d6b48de3dacea8958 /src/conf_mode/nat.py
parent1982aa3434d0133b5060d0a6df4e636dbf1b98fa (diff)
parent7c936988d61c8e31e56e73e975890024f0ece370 (diff)
downloadvyos-1x-f5b4f5e8536ebab6d1b513367fce414502bda375.tar.gz
vyos-1x-f5b4f5e8536ebab6d1b513367fce414502bda375.zip
Merge pull request #3935 from vyos/mergify/bp/circinus/pr-3932
T6629: call check_kmod within a standard config function (backport #3932)
Diffstat (limited to 'src/conf_mode/nat.py')
-rwxr-xr-xsrc/conf_mode/nat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py
index f74bb217e..39803fa02 100755
--- a/src/conf_mode/nat.py
+++ b/src/conf_mode/nat.py
@@ -240,6 +240,8 @@ def generate(nat):
return None
def apply(nat):
+ check_kmod(k_mod)
+
cmd(f'nft --file {nftables_nat_config}')
cmd(f'nft --file {nftables_static_nat_conf}')
@@ -253,7 +255,6 @@ def apply(nat):
if __name__ == '__main__':
try:
- check_kmod(k_mod)
c = get_config()
verify(c)
generate(c)