summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Liljenstolpe <vyatta@cdl.asgaard.org>2008-03-04 18:46:27 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-03-04 18:46:27 -0800
commit1c2ea1480d6b5c1d7968fd04093dcfc254510ad1 (patch)
treef41d0e9f39cbde116007dbd183ed4c4e2f57cef9
parent14c69a606f627187539796f0158dbf181a21dc00 (diff)
downloadvyatta-cfg-1c2ea1480d6b5c1d7968fd04093dcfc254510ad1.tar.gz
vyatta-cfg-1c2ea1480d6b5c1d7968fd04093dcfc254510ad1.zip
Fix 2954: IPv6 addresses that have a-f in the address fail.
-rw-r--r--scripts/vyatta-interfaces.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index fc10c4d..482faa8 100644
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -358,7 +358,7 @@ sub is_valid_addr {
}
my ($addr, $net);
- if ($addr_net =~ m/^([0-9\.\:]+)\/(\d+)$/) {
+ if ($addr_net =~ m/^([0-9a-fA-F\.\:]+)\/(\d+)$/) {
$addr = $1;
$net = $2;
} else {