diff options
author | John Estabrook <jestabro@vyos.io> | 2021-04-01 11:28:32 -0500 |
---|---|---|
committer | create with ansible <dmbaturin@webhost-us-1.sentrium.io> | 2021-08-10 14:09:13 +0000 |
commit | acf57327e456543aeff8d2c97c26aa711085e868 (patch) | |
tree | 59dc9fffc9091eab3fa196ea5eafd12b3678cbcd | |
parent | 165e56e88763c40f13e6ef77f5df1c888fdfb899 (diff) | |
download | vyatta-cfg-system-acf57327e456543aeff8d2c97c26aa711085e868.tar.gz vyatta-cfg-system-acf57327e456543aeff8d2c97c26aa711085e868.zip |
migration: T2838: fix parsing of quoted config value for hw-id
-rwxr-xr-x | scripts/vyatta_net_name | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |