Page MenuHomeVyOS Platform

PPPoE static default-routes deleted on interface down when not added by interface up
Closed, ResolvedPublic

Description

As of the fixes made in T2502, any manual default-routes configured on a PPPoE interface will be deleted when the interface is torn down, even if they weren't added by setting 'interface pppoe pppoeX default-route' to 'auto' or 'force'.

ip-up.script.tmpl skips the addition of a default-route on interface up where 'interface pppoe pppoeX default-route' is set to 'none' and ip-down.script.tmpl should do the same.

There's at least a couple of good reasons why a manually configured default-route may be required (I'm sure there's more, but these are my situation):

  • A default-route has been installed by another dynamic interface (For example via DHCP, or even another PPPoE interface); this route existing will result in no default-route being installed for the new PPPoE interface (For the default-route setting of 'auto') or it will replace all existing default-routes (For the default-route setting of 'force')
  • A administrative distance other than 1 is required for this default-route, so this has been installed as a manual default-route and the 'default-route' setting explicitly set to 'none'

As it stands, things somewhat behave as expected on PPPoE interface up however when the PPPoE interface goes down the router can be left with no default-routes at all.

Ideally, if 'default-route' is set to 'none' any default-routes associated with this PPPoE interface should be ignored.

Details

Difficulty level
Unknown (require assessment)
Version
current
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

Tanuki created this task.
Tanuki created this object in space S1 VyOS Public.
c-po changed the task status from Open to Backport pending.EditedJan 30 2021, 12:47 PM
c-po claimed this task.

Once confirmed in 1.4 this is a good backport candidate to 1.3. Thanks!

SrividyaA set Issue type to Bug (incorrect behavior).Aug 30 2021, 6:20 PM