summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 21:32:44 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 21:43:27 +0200
commit763b3ff6f5d8345815074217436c119400510482 (patch)
tree1029bd0c1ad68299c8fcc30f87357e1fb3074f17 /src
parent0d16353e97521bfce49d131e0a18c49b307d95e0 (diff)
downloadvyos-1x-763b3ff6f5d8345815074217436c119400510482.tar.gz
vyos-1x-763b3ff6f5d8345815074217436c119400510482.zip
tunnel: T3555: add "ignore-df" support for GRE tunnels
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-tunnel.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py
index 4e6c8a9ab..1575c83ef 100755
--- a/src/conf_mode/interfaces-tunnel.py
+++ b/src/conf_mode/interfaces-tunnel.py
@@ -109,6 +109,14 @@ def verify(tunnel):
if tunnel['encapsulation'] in ['ipip6', 'ip6ip6', 'ip6gre']:
raise ConfigError('Can not disable PMTU discovery for given encapsulation')
+ if dict_search('parameters.ip.ignore_df', tunnel) != None:
+ if tunnel['encapsulation'] not in ['gretap']:
+ raise ConfigError('Option ignore-df can only be used on GRETAP tunnels!')
+
+ if dict_search('parameters.ip.no_pmtu_discovery', tunnel) == None:
+ raise ConfigError('Option ignore-df path MTU discovery to be disabled!')
+
+
def generate(tunnel):
return None