summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ids
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-10-18 13:14:54 +0200
committerChristian Breunig <christian@breunig.cc>2025-10-18 13:19:10 +0200
commit6a5cd3b87b2dee397ddb4a72dffd25e4e24122f1 (patch)
treea11137ca35472179b1ee7a535fef958723211820 /src/migration-scripts/ids
parent69a9b93f71c818bf134ea06ad73d86a513628f06 (diff)
downloadvyos-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/migration-scripts/ids')
0 files changed, 0 insertions, 0 deletions