diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-28 15:27:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 15:27:07 +0100 |
commit | 50a78a29e3bbe6ccc2e070706133c06f6053a612 (patch) | |
tree | 0ae8263a86489e8ceb4d6399a13940bbdc82d4c9 /src/conf_mode/interfaces-pppoe.py | |
parent | 39cb031dadb52d0175b84edd8d863418c3ca53cc (diff) | |
parent | 220750b9e747c7f539849e96889cfef695300313 (diff) | |
download | vyos-1x-50a78a29e3bbe6ccc2e070706133c06f6053a612.tar.gz vyos-1x-50a78a29e3bbe6ccc2e070706133c06f6053a612.zip |
Merge pull request #2536 from c-po/backport-pr-2527
pppoe: T5630: make MRU default to MTU if unspecified (backport #2527)
Diffstat (limited to 'src/conf_mode/interfaces-pppoe.py')
-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 49714c558..7434c5b3b 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -44,6 +44,12 @@ def get_config(config=None): base = ['interfaces', 'pppoe'] pppoe = get_interface_dict(conf, base) + 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): |