Page MenuHomeVyOS Platform

dhclient exit hook script 01-vyos-cleanup causes too many arguments error
Closed, ResolvedPublicBUG


When there is no VRF/upper interface the script will produce the following error:

Oct 20 11:59:49 vyos dhclient[2057]: /etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup: line 25: [: too many arguments

as in that situation $vrf_name will evaluate to * and then be expanded to a list of files/directories in the working directory of the script.


Difficulty level
Easy (less than an hour)
1.3 beta
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Cosmetic issue (typos etc.)

Event Timeline

c-po assigned this task to ross211.
c-po edited projects, added VyOS 1.3 Equuleus (1.3.0-epa3); removed VyOS 1.3 Equuleus.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.0-epa3) board.