Page MenuHomeVyOS Platform

pppoe: idle-timeout, local-address and remote-address are accepted but not applied
Open, NormalPublicBUG

Description

The PPPoE client options idle-timeout, local-address and remote-address commit without error, but none of them is written to the pppd configuration.

Steps to reproduce
  1. Have a reachable PPPoE server on eth1.
  2. Configure and commit:
set interfaces pppoe pppoe0 source-interface eth1
set interfaces pppoe pppoe0 authentication username <user>
set interfaces pppoe pppoe0 authentication password <pass>
set interfaces pppoe pppoe0 connect-on-demand
set interfaces pppoe pppoe0 default-route-distance 250
set interfaces pppoe pppoe0 idle-timeout 30
set interfaces pppoe pppoe0 local-address 100.64.77.15
set interfaces pppoe pppoe0 remote-address 100.64.77.1
commit
  1. Inspect the rendered file:
grep -c idle /etc/ppp/peers/pppoe0
grep -c 100.64.77 /etc/ppp/peers/pppoe0
  1. ping -I pppoe0 -c 4 <an address behind the server>, then wait 90 seconds without traffic.
Expected

The peer file contains idle 30 and 100.64.77.15:100.64.77.1. The link disconnects after 30 seconds without traffic, and pppd logs the idle disconnect.

Actual

Both grep counts are 0: the peer file contains no idle line and no local:remote line. After 90 seconds without traffic the session was still up on the client; on current rolling the server also still listed it as active. pppd logged nothing about inactivity. The link took the address the server assigned, not local-address.

From the git history, the pppd template has not rendered these options at any point since the PPPoE client was rewritten in XML/Python (T1318)

Details

Version
rolling. 1.5, 1.4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Related Objects