summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces_l2tpv3.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-08-01 19:18:36 -0500
committerJohn Estabrook <jestabro@vyos.io>2024-08-02 08:59:41 -0500
commit95eef73f1b002c8b9e8e769135ffed50c8ca6890 (patch)
tree98bef2bc1fa8db0817eb4493ed971fe819a597c3 /src/conf_mode/interfaces_l2tpv3.py
parent0f66f4a84deee3da1b164c30dbe221105b424659 (diff)
downloadvyos-1x-95eef73f1b002c8b9e8e769135ffed50c8ca6890.tar.gz
vyos-1x-95eef73f1b002c8b9e8e769135ffed50c8ca6890.zip
T6629: call check_kmod within a standard config function
Move the remaining calls to check_kmod within a standard function, with placement determined by the needs of the config script.
Diffstat (limited to 'src/conf_mode/interfaces_l2tpv3.py')
-rwxr-xr-xsrc/conf_mode/interfaces_l2tpv3.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces_l2tpv3.py b/src/conf_mode/interfaces_l2tpv3.py
index b9f827bee..f0a70436e 100755
--- a/src/conf_mode/interfaces_l2tpv3.py
+++ b/src/conf_mode/interfaces_l2tpv3.py
@@ -86,6 +86,8 @@ def generate(l2tpv3):
return None
def apply(l2tpv3):
+ check_kmod(k_mod)
+
# Check if L2TPv3 interface already exists
if interface_exists(l2tpv3['ifname']):
# L2TPv3 is picky when changing tunnels/sessions, thus we can simply
@@ -102,7 +104,6 @@ def apply(l2tpv3):
if __name__ == '__main__':
try:
- check_kmod(k_mod)
c = get_config()
verify(c)
generate(c)