summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-03 11:51:27 +0100
committerGitHub <noreply@github.com>2024-01-03 11:51:27 +0100
commit48f2a0a8d2fe182f057a09e0af7ed78746a223a2 (patch)
treea8ac8e975d10c8b764cecea94490a20e6588f6cb /src
parent03a74692b4ac5d7e8d31976676af8930ac7c84ac (diff)
parentd61f5a269b17b4926ad848a14786ef7291ec0352 (diff)
downloadvyos-1x-48f2a0a8d2fe182f057a09e0af7ed78746a223a2.tar.gz
vyos-1x-48f2a0a8d2fe182f057a09e0af7ed78746a223a2.zip
Merge pull request #2732 from vyos/mergify/bp/sagitta/pr-2728
T5880: verify_source_interface() should not allow dynamic interfaces like ppp, l2tp, ipoe or sstpc client interfaces (backport #2728)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces_tunnel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces_tunnel.py b/src/conf_mode/interfaces_tunnel.py
index 91aed9cc3..efa5ebc64 100755
--- a/src/conf_mode/interfaces_tunnel.py
+++ b/src/conf_mode/interfaces_tunnel.py
@@ -24,7 +24,7 @@ from vyos.configdict import get_interface_dict
from vyos.configdict import is_node_changed
from vyos.configverify import verify_address
from vyos.configverify import verify_bridge_delete
-from vyos.configverify import verify_interface_exists
+from vyos.configverify import verify_source_interface
from vyos.configverify import verify_mtu_ipv6
from vyos.configverify import verify_mirror_redirect
from vyos.configverify import verify_vrf
@@ -166,7 +166,7 @@ def verify(tunnel):
verify_mirror_redirect(tunnel)
if 'source_interface' in tunnel:
- verify_interface_exists(tunnel['source_interface'])
+ verify_source_interface(tunnel)
# TTL != 0 and nopmtudisc are incompatible, parameters and ip use default
# values, thus the keys are always present.