From cd11187d9adf34fc8f741b1c7e125bacabdad2ae Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 1 Apr 2021 11:28:32 -0500 Subject: migration: T2838: fix parsing of quoted config value for hw-id (cherry picked from commit 6019ab063d8f26172ffc3993fa25a57fcd5782aa) --- scripts/vyatta_net_name | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index 825bf86f..d61ac6a3 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -55,7 +55,7 @@ sub get_hwid_from_children { my $children = shift; foreach my $attr (@$children) { - next unless ($attr->{'name'} =~ /^hw-id ([0-9a-f:]+)/); + next unless (($attr->{'name'} =~ /^hw-id ([0-9a-f:]+)/) || ($attr->{'name'} =~ /^hw-id "([0-9a-f:]+)"/)); return $1; } -- cgit v1.2.3