summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2013-06-19 14:10:57 -0700
committerJames Davidson <james.davidson@vyatta.com>2013-06-19 14:17:14 -0700
commitb1d26b59c35a9c255eb3addbbe2b35770eb713cf (patch)
tree192b186bea4195216cf9e6c5fa7fa7d769b86e29
parent588a43d0b72f765d88d8690f94ca02ada45dc8cf (diff)
downloadvyatta-op-b1d26b59c35a9c255eb3addbbe2b35770eb713cf.tar.gz
vyatta-op-b1d26b59c35a9c255eb3addbbe2b35770eb713cf.zip
bz8631: Fix lease file regex to include leases on vif
-rwxr-xr-xscripts/show-dhcp-leases.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/show-dhcp-leases.pl b/scripts/show-dhcp-leases.pl
index ce0c686..a7a918a 100755
--- a/scripts/show-dhcp-leases.pl
+++ b/scripts/show-dhcp-leases.pl
@@ -11,7 +11,7 @@
# General Public License for more details.
#
# This code was originally developed by Vyatta, Inc.
-# Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc.
+# Portions created by Vyatta are Copyright (C) 2007-2013 Vyatta, Inc.
# All Rights Reserved.
#
# Author: Stephen Hemminger
@@ -25,7 +25,7 @@ use strict;
opendir (my $dir, "/var/lib/dhcp3");
my @leases;
while (my $f = readdir $dir) {
- ($f =~ /^dhclient_(\w+)_lease$/) && push @leases, $1;
+ ($f =~ /^dhclient_([\w.]+)_lease$/) && push @leases, $1;
}
closedir $dir;