Subject: | Patch for names with descriptions |
Date: | Mon, 12 Mar 2007 22:08:58 -0400 |
To: | bug-PIX-Walker [...] rt.cpan.org |
From: | "Ryan Shea" <ryan [...] muppethouse.com> |
This patch will fix a problem. Name to IP mappings at the top of a
PIX config can actually have a description such as:
name 10.11.12.13 mega-server-1 description Huge Honking Server
--- Walker.pm 2006-06-13 14:16:56.000000000 -0400
+++ Walker.pm.new 2007-03-12 22:03:17.000000000 -0400
@@ -242,7 +242,7 @@
$self->_rewind($line);
$self->{acls}{$name} = new
PIX::Accesslist($name, $conf, $self);
- } elsif ($line =~ /^name (\S+) (.+)/) {
+ } elsif ($line =~ /^name (\S+) (\S+)/) {
$self->{alias}{$2} = $1;
}
}