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