Changeset 590 for trunk/cgi-bin
- Timestamp:
- 01/22/13 17:31:53 (12 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r588 r590 1032 1032 } # end fullcidr != alloc_from 1033 1033 1034 # now we do the DNS dance for netblocks, if we have an RPC server to do it with. 1035 _rpc('addOrUpdateRevRec', cidr => "$args{cidr}", name => $args{rdns}, rpcuser => $args{user}); 1034 # now we do the DNS dance for netblocks, if we have an RPC server to do it with and a pattern to use. 1035 _rpc('addOrUpdateRevRec', cidr => "$args{cidr}", name => $args{rdns}, rpcuser => $args{user}) 1036 if $args{rdns}; 1036 1037 1037 1038 return ('OK', 'OK'); … … 1184 1185 # Also handles "deleting" a static IP allocation, and removal of a master 1185 1186 # Requires a database handle, the block to delete, the routing depth (if applicable), 1186 # and the VRF ID 1187 # the VRF ID, and a flag to indicate whether to delete associated forward DNS entries 1188 # as well as the reverse entry 1187 1189 sub deleteBlock { 1188 my ($dbh,undef,$rdepth,$vrf ) = @_;1190 my ($dbh,undef,$rdepth,$vrf,$delfwd,$user) = @_; 1189 1191 my $cidr = new NetAddr::IP $_[1]; 1190 1192 … … 1240 1242 return ('FAIL',$msg); 1241 1243 } else { 1244 ##fixme: RPC return code? 1245 _rpc('delByCIDR', cidr => "$cidr", user => $user, delforward => $delfwd); 1242 1246 return ('OK',"OK"); 1243 1247 } … … 1258 1262 return ('FAIL', $msg); 1259 1263 } else { 1264 ##fixme: RPC return code? 1265 _rpc('delZone', zone => "$cidr", user => $user, revrec => 'y'); 1260 1266 return ('OK',"OK"); 1261 1267 } … … 1428 1434 return ('FAIL', $msg); 1429 1435 } else { 1436 ##fixme: RPC return code? 1437 _rpc('delByCIDR', cidr => "$cidr", user => $user, delforward => $delfwd, delsubs => 'y'); 1430 1438 return ($retcode, $goback); 1431 1439 } -
trunk/cgi-bin/main.cgi
r589 r590 890 890 my $blockinfo = getBlockData($ip_dbh, $webvar{block}, $webvar{rdepth}); 891 891 892 my ($code,$msg) = deleteBlock($ip_dbh, $webvar{block}, $webvar{rdepth}, $webvar{vrf} );892 my ($code,$msg) = deleteBlock($ip_dbh, $webvar{block}, $webvar{rdepth}, $webvar{vrf}, $webvar{delforward}, $authuser); 893 893 894 894 $page->param(block => $webvar{block});
Note:
See TracChangeset
for help on using the changeset viewer.