<div dir="ltr">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:<div>
<br></div><div><div> elsif ( $4 && defined $5 ) { # IPv4/mask</div><div style><i> next; # Do not add IPv4 ranges to tickets</i></div><div> my $cidr = join( '.', map $_||0, (split /\./, $4)[0..3] ) ."/$5";</div>
<div> my $range = (Net::CIDR::cidr2range( $cidr ))[0] or next;</div><div> $spots_left -= $self->AddIP(</div><div> IP => $range, CustomField => $cf, Skip => \%existing</div>
<div> );</div><div> }</div><div><br></div><div style>Is this the best way? Or is there something else I should have done instead?</div><div><br></div>-- <br><div>Landon Stewart <LandonStewart@Gmail.com><br>
</div>
</div></div>