[Rtir] Wondering if this is the best way to stop RTIR from detecting CIDR ranges
Landon
landonstewart at gmail.com
Fri May 24 17:11:58 EDT 2013
I'm wondering if this is the best way to stop RTIR from detecting CIDR
ranges. I've been looking
into /opt/rt4/local/plugins/RT-IR/lib/RT/Action/RTIR_FindIP.pm and modified
the following section:
elsif ( $4 && defined $5 ) { # IPv4/mask
* next; # Do not add IPv4 ranges to tickets*
my $cidr = join( '.', map $_||0, (split /\./, $4)[0..3] )
."/$5";
my $range = (Net::CIDR::cidr2range( $cidr ))[0] or next;
$spots_left -= $self->AddIP(
IP => $range, CustomField => $cf, Skip => \%existing
);
}
Is this the best way? Or is there something else I should have done
instead?
--
Landon Stewart <LandonStewart at Gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rtir/attachments/20130524/fb72f64e/attachment.html>
More information about the Rtir
mailing list