Page MenuHomeVyOS Platform

Prevent deletion of bridge member interfaces
Needs testing, NormalPublicBUG

Description

Interfaces assigned to a bridge should not be allowed to be deleted. If an interface is deleted from the config, the subsequent boot will fail with a configuration error as one of the bridge interfaces is mirring.

This is true for the following interfaces:

  • bonding
  • dummy
  • geneve
  • l2tpv3
  • openvpn
  • pseudo-ethernet
  • tunnel -> @thomas-mangin please add this as I do not understand that code
  • vti (to be done on interface rewrite)
  • vxlan
  • wireguard -> not fully supported by current wireguard implementation (deleting all wireguard interfaces does not trigger the check) Fixed in T2244
  • wireless
  • wirelessmodem

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-20200405
Why the issue appeared?
Design mistake
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Event Timeline

c-po created this task.
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Stricter validation.
c-po renamed this task from l2tpv3 interface can be deleted while it is still assigned to a bridge to Prevent deletion of bridge member interfaces.Apr 7 2020, 6:45 PM
c-po changed the task status from Open to In progress.
c-po updated the task description. (Show Details)
c-po updated the task description. (Show Details)
c-po added a subscriber: thomas-mangin.

@cpo AFAIU the patches are not right as the code making use of Config() in the verify() section and AFAIU this is against the separation between get_config()

Yes - there are some parts which make use of this bad practice (mostly introduced by me), cleanup required.

THos parts can be read in get_config() and evaluated in verify() instead. Let us coordinate on Slack.

c-po updated the task description. (Show Details)
erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 7:38 AM
erkin removed a subscriber: Active contributors.
Viacheslav changed the task status from In progress to Needs testing.Jan 20 2024, 12:49 AM
Viacheslav triaged this task as Normal priority.