diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-03-23 13:45:40 +0200 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-03-23 13:45:40 +0200 |
| commit | 72784172a0edfd72e43390eed2e5651cfe3e427c (patch) | |
| tree | c239077d6adc141cb50410989e24a1ae000ab6b5 /src | |
| parent | d922f888dc822cc4e3b7ce70a4402ece7eef6e41 (diff) | |
| download | vyos-1x-72784172a0edfd72e43390eed2e5651cfe3e427c.tar.gz vyos-1x-72784172a0edfd72e43390eed2e5651cfe3e427c.zip | |
T8355: Relax VXLAN MTU check: use Warning instead of ConfigError
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/interfaces_vxlan.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces_vxlan.py b/src/conf_mode/interfaces_vxlan.py index 5e23654e1..968214354 100755 --- a/src/conf_mode/interfaces_vxlan.py +++ b/src/conf_mode/interfaces_vxlan.py @@ -159,8 +159,10 @@ def verify(vxlan): lower_mtu = Interface(vxlan['source_interface']).get_mtu() if lower_mtu < (int(vxlan['mtu']) + vxlan_overhead): - raise ConfigError(f'Underlaying device MTU is to small ({lower_mtu} '\ - f'bytes) for VXLAN overhead ({vxlan_overhead} bytes!)') + Warning( + f'Underlying device MTU is too small ({lower_mtu} ' + f'bytes) for VXLAN overhead ({vxlan_overhead} bytes!)' + ) # Check for mixed IPv4 and IPv6 addresses protocol = None |
