merging cisco and pix modules

This commit is contained in:
Vadim Kurland
2008-03-19 03:43:11 +00:00
parent 9c966dbc91
commit 3dc8099fc3
47 changed files with 27812 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/perl
$XMLFILE=@ARGV[0];
$DIFFCMD="diff -U 0 -u -b -B -I \"! Generated\" ";
while (<>) {
$str=$_;
while ( $str=~ /<Firewall / ) {
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
$fw=$1;
printf "$DIFFCMD %s.fw.orig %s.fw\n",$fw,$fw;
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
}
}