Page MenuHomeVyOS Platform

DHCP hook is not able to detect all running DHCP instances
Closed, ResolvedPublicBUG


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
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav changed the task status from Open to Needs testing.Apr 19 2021, 6:22 PM
syncer triaged this task as Normal priority.Oct 17 2021, 3:41 PM
syncer removed a project: VyOS 1.3 Equuleus.
dmbaturin set Issue type to Unspecified (please specify).