Page MenuHomeVyOS Platform

Replace netplugd by udev rules
On hold, NormalPublicFEATURE REQUEST


Plain Debian 10 uses the following mechanism to trigger events on link up/down

$ cat /lib/udev/rules.d/80-ifupdown.rules
# Allow rfkill for users in the netdev group
KERNEL=="rfkill", MODE="0664", GROUP="netdev"

# Handle allow-hotplug interfaces
SUBSYSTEM=="net", ACTION=="add|remove", RUN+="ifupdown-hotplug"

VyOS 1.3 and 1.4 both only have two scripts which get executed on link-state changes:

Despite the arguably ancient Perl content, this scripts can also be invoked by a vyos-ifupdown wrapper script or directly. Also the invocation is limited to bridge, ethernet and bond interfaces /etc/netplug/netplugd.conf

Basically its entire purpose is:

  • start DHCP client on linkup
  • stop DHCP client on linkdown


Difficulty level
Normal (likely a few hours)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Related Objects

Event Timeline

c-po moved this task from Need Triage to Backlog on the VyOS 1.4 Sagitta board.
c-po triaged this task as Normal priority.Feb 28 2021, 10:37 AM
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po moved this task from Backlog to In Progress on the VyOS 1.4 Sagitta board.

Looks like it is not possible using udev:

ACTION=="add|remove" is only used when a device is added or removed not when a link flaps.

c-po changed the task status from Open to On hold.Mar 3 2021, 8:41 PM