summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-22 11:04:37 +0100
committerGitHub <noreply@github.com>2023-11-22 11:04:37 +0100
commit6dfbf213fe83cf14ca5350e1cdfad6122d0b2ab3 (patch)
treeb8b8d45a498156daa810ef937e8c2689a91ef02b /src
parent00a28fe512ccb56f4ca57d18c2613ac47242a66d (diff)
parent4a163b016333e58fee9d6ec6b53a09e0160b3213 (diff)
downloadvyos-1x-6dfbf213fe83cf14ca5350e1cdfad6122d0b2ab3.tar.gz
vyos-1x-6dfbf213fe83cf14ca5350e1cdfad6122d0b2ab3.zip
Merge pull request #2503 from c-po/t5759-vxlan-mtu
vxlan: T5759: change default MTU from 1450 -> 1500 bytes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/migration-scripts/interfaces/31-to-324
1 files changed, 4 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/31-to-32 b/src/migration-scripts/interfaces/31-to-32
index ca3d19320..0fc27b70a 100755
--- a/src/migration-scripts/interfaces/31-to-32
+++ b/src/migration-scripts/interfaces/31-to-32
@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# T5671: change port to IANA assigned default port
+# T5759: change default MTU 1450 -> 1500
from sys import argv
from sys import exit
@@ -43,6 +44,9 @@ for vxlan in config.list_nodes(base):
if not config.exists(base + [vxlan, 'port']):
config.set(base + [vxlan, 'port'], value='8472')
+ if not config.exists(base + [vxlan, 'mtu']):
+ config.set(base + [vxlan, 'mtu'], value='1450')
+
try:
with open(file_name, 'w') as f:
f.write(config.to_string())