summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-06-01 11:30:11 +0000
committerChristian Poessinger <christian@poessinger.com>2021-06-04 14:48:01 +0200
commit5a029892e97a7a5ef4450237412eaa6ce29aeb39 (patch)
tree2d023cea1406ce59098c454ceea6712b3818775d /interface-definitions
parente0c86b974891dbea77bf77160b3188ace6d5a2f6 (diff)
downloadvyos-1x-5a029892e97a7a5ef4450237412eaa6ce29aeb39.tar.gz
vyos-1x-5a029892e97a7a5ef4450237412eaa6ce29aeb39.zip
tunnels: T3592: Set default TTL to 64
Set default TTL value for tunnels from 0 to 64 There are a lot of situation when default value 0 (inherit) not work properly when you have routing configuration for OSPF or BGP over the tunnels. To fix it you need explicit set TTL value other then 0. Or hardcode another value as default. (cherry picked from commit b4db37507635bf95161bea32b18736fc0732a9e6)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/interface/interface-parameters-ttl.xml.i2
-rw-r--r--interface-definitions/interfaces-tunnel.xml.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/interface-definitions/include/interface/interface-parameters-ttl.xml.i b/interface-definitions/include/interface/interface-parameters-ttl.xml.i
index aa7c9d27b..21a5e5cd9 100644
--- a/interface-definitions/include/interface/interface-parameters-ttl.xml.i
+++ b/interface-definitions/include/interface/interface-parameters-ttl.xml.i
@@ -1,7 +1,7 @@
<!-- include start from interface/interface-parameters-ttl.xml.i -->
<leafNode name="ttl">
<properties>
- <help>Specifies TTL value to use in outgoing packets (default: 0)</help>
+ <help>Specifies TTL value to use in outgoing packets</help>
<valueHelp>
<format>0</format>
<description>Copy value from original IP header</description>
diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in
index f7af93f42..2b425f865 100644
--- a/interface-definitions/interfaces-tunnel.xml.in
+++ b/interface-definitions/interfaces-tunnel.xml.in
@@ -183,6 +183,9 @@
#include <include/interface/interface-parameters-key.xml.i>
#include <include/interface/interface-parameters-tos.xml.i>
#include <include/interface/interface-parameters-ttl.xml.i>
+ <leafNode name="ttl">
+ <defaultValue>64</defaultValue>
+ </leafNode>
</children>
</node>
<node name="ipv6">