diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-22 11:40:29 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-11-23 12:06:31 +0100 |
commit | 220750b9e747c7f539849e96889cfef695300313 (patch) | |
tree | b61b12fada9c109e4c8d6b996fe81b1503ae59fd /src | |
parent | bdf0a3b288f93f2e8257106de968ddaa3fca0e21 (diff) | |
download | vyos-1x-220750b9e747c7f539849e96889cfef695300313.tar.gz vyos-1x-220750b9e747c7f539849e96889cfef695300313.zip |
pppoe: T5630: make MRU default to MTU if unspecified
This fixes the implementation in e062a8c11 ("pppoe: T5630: allow to specify MRU
in addition to already configurable MTU") and restores the bahavior that MRU
defaults to MTU if MRU is not explicitly set.
This was the behavior in VyOS 1.3.3 and below before we added ability to define
the MRU value.
(cherry picked from commit ffd7339e2ea3eafdd97ac0763ca4a3913fe71bf3)
Diffstat (limited to 'src')
-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): |