diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-11-22 12:26:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 12:26:01 +0000 |
commit | 319e1bf7f23c33c202271efda2187f086b79e0c0 (patch) | |
tree | d8b4061aefa260708fed0b1eaaca29f7b5e1e217 /src/conf_mode | |
parent | b1ef7ba3e5f66d446cd83609b25e05ab47f92060 (diff) | |
parent | 2dd0aa94e080e3138e11969b10b76329063b31ce (diff) | |
download | vyos-1x-319e1bf7f23c33c202271efda2187f086b79e0c0.tar.gz vyos-1x-319e1bf7f23c33c202271efda2187f086b79e0c0.zip |
Merge pull request #2529 from vyos/mergify/bp/sagitta/pr-2527
pppoe: T5630: make MRU default to MTU if unspecified (backport #2527)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-pppoe.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py index 0a03a172c..42f084309 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -61,6 +61,12 @@ def get_config(config=None): # bail out early - no need to further process other nodes break + if 'deleted' not in pppoe: + # We always set the MRU value to the MTU size. This code path only re-creates + # the old behavior if MRU is not set on the CLI. + if 'mru' not in pppoe: + pppoe['mru'] = pppoe['mtu'] + return pppoe def verify(pppoe): |