summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-11-30 15:57:53 +0000
committerGitHub <noreply@github.com>2023-11-30 15:57:53 +0000
commit652e235894aeae46765ea9fbbe2208578aaa7a8c (patch)
tree415ce73ad09f080d9fedbf09101310a9951e4342 /src/migration-scripts
parente2a29c83dc74864cd72e8ad9d65eeb4e81d82128 (diff)
parentb083d60102e5b955a7dda544e94bc92b21e619b6 (diff)
downloadvyos-1x-652e235894aeae46765ea9fbbe2208578aaa7a8c.tar.gz
vyos-1x-652e235894aeae46765ea9fbbe2208578aaa7a8c.zip
Merge pull request #2526 from vyos/mergify/bp/sagitta/pr-2503
vxlan: T5759: change default MTU from 1450 -> 1500 bytes (backport #2503)
Diffstat (limited to 'src/migration-scripts')
-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())