summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-04-01 11:28:32 -0500
committercreate with ansible <dmbaturin@webhost-us-1.sentrium.io>2021-08-10 14:09:13 +0000
commitacf57327e456543aeff8d2c97c26aa711085e868 (patch)
tree59dc9fffc9091eab3fa196ea5eafd12b3678cbcd
parent165e56e88763c40f13e6ef77f5df1c888fdfb899 (diff)
downloadvyatta-cfg-system-acf57327e456543aeff8d2c97c26aa711085e868.tar.gz
vyatta-cfg-system-acf57327e456543aeff8d2c97c26aa711085e868.zip
migration: T2838: fix parsing of quoted config value for hw-id
-rwxr-xr-xscripts/vyatta_net_name2
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;
}