Page MenuHomeVyOS Platform

DHCP hook is not able to detect all running DHCP instances
Needs testing, NormalPublicBUG


The 02-vyos-stopdhclient hook to find out all the running DHCP clients for a current interface uses the regex "/sbin/dhclient $ipversion_arg .*$interface$", but when dhclient is started by ifup (for example in images with Cloud-init), it generating the command:

/sbin/dhclient -4 -v -i -pf /run/ -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0 -e IF_METRIC=100

So it cannot be detected by the regex.

The regex should be modified to make it correct for this case too.


Difficulty level
Normal (likely a few hours)
1.4-rolling-202104130417, 1.3-rolling-202104120642
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible