summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-28 15:27:07 +0100
committerGitHub <noreply@github.com>2023-11-28 15:27:07 +0100
commit50a78a29e3bbe6ccc2e070706133c06f6053a612 (patch)
tree0ae8263a86489e8ceb4d6399a13940bbdc82d4c9 /src
parent39cb031dadb52d0175b84edd8d863418c3ca53cc (diff)
parent220750b9e747c7f539849e96889cfef695300313 (diff)
downloadvyos-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')
-rwxr-xr-xsrc/conf_mode/interfaces-pppoe.py6
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):