diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-18 13:14:54 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-10-18 13:19:10 +0200 |
| commit | 6a5cd3b87b2dee397ddb4a72dffd25e4e24122f1 (patch) | |
| tree | a11137ca35472179b1ee7a535fef958723211820 /src/validators/ddclient-protocol | |
| parent | 69a9b93f71c818bf134ea06ad73d86a513628f06 (diff) | |
| download | vyos-1x-6a5cd3b87b2dee397ddb4a72dffd25e4e24122f1.tar.gz vyos-1x-6a5cd3b87b2dee397ddb4a72dffd25e4e24122f1.zip | |
T7941: fix DHCP client running in VRF with non-word characters
The previous implementation used awk with a regex to extract the VRF name from
JSON data, relying on "(\w+)" to match the value. This broke for valid VRF
names containing hyphens or other non-word characters.
This update replaces the regex-based extraction with a jq query that reliably
parses the JSON structure, ensuring correct behavior regardless of VRF name
format. This also reduces parsing fragility by using a tool purpose-built for
JSON processing.
Diffstat (limited to 'src/validators/ddclient-protocol')
0 files changed, 0 insertions, 0 deletions
