summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-22 13:23:12 +0100
committerGitHub <noreply@github.com>2023-11-22 13:23:12 +0100
commit9a5785c698d5a2819a4c51dfe3536ff83106a0c8 (patch)
treea69c023a49fd64873319a5c79c03fb1b56cb3b76 /src
parent6dfbf213fe83cf14ca5350e1cdfad6122d0b2ab3 (diff)
parentffd7339e2ea3eafdd97ac0763ca4a3913fe71bf3 (diff)
downloadvyos-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-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 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):