diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-22 13:23:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 13:23:12 +0100 |
commit | 9a5785c698d5a2819a4c51dfe3536ff83106a0c8 (patch) | |
tree | a69c023a49fd64873319a5c79c03fb1b56cb3b76 /src | |
parent | 6dfbf213fe83cf14ca5350e1cdfad6122d0b2ab3 (diff) | |
parent | ffd7339e2ea3eafdd97ac0763ca4a3913fe71bf3 (diff) | |
download | vyos-1x-9a5785c698d5a2819a4c51dfe3536ff83106a0c8.tar.gz vyos-1x-9a5785c698d5a2819a4c51dfe3536ff83106a0c8.zip |
Merge pull request #2527 from c-po/t5630-mru-part-2
pppoe: T5630: make MRU default to MTU if unspecified
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 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): |