Changeset 759 for trunk/cgi-bin
- Timestamp:
- 07/28/15 18:00:43 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r758 r759 1085 1085 # List the IPs in an IP pool. 1086 1086 # Takes a pool/parent ID 1087 # Returns1088 1087 # Returns an arrayref to a list of hashrefs containing the IP, customer ID, availability flag, 1089 1088 # description, backreference to the pool/parent, and the IP ID in the pool. … … 1845 1844 } 1846 1845 1846 ##fixme: RPC failures? 1847 1847 return ('OK','OK'); 1848 1848 } # end updateBlock() … … 2008 2008 2009 2009 # Only try to update rDNS when the original block is flagged as "rDNS available" 2010 _rpc('splitTemplate', cidr => $binfo->{block}, newmask => $args{newmask}, rpcuser => $args{user}) ;2010 _rpc('splitTemplate', cidr => $binfo->{block}, newmask => $args{newmask}, rpcuser => $args{user}) 2011 2011 if ($binfo->{revavail} || $binfo->{revpartial}); 2012 2012 … … 2026 2026 # just take the new CIDR spec; this way we can shrink eg .16/28 to .20/30 without extra contortions 2027 2027 my $newblock = new NetAddr::IP shift; 2028 2029 my $user = shift; 2028 2030 2029 2031 if (!$newblock) { … … 2138 2140 2139 2141 # Only try to update rDNS when the original block is flagged as "rDNS available" 2140 _rpc('resizeTemplate', oldcidr => $binfo->{block}, newcidr => $newblock->network, rpcuser => $ args{user});2142 _rpc('resizeTemplate', oldcidr => $binfo->{block}, newcidr => $newblock->network, rpcuser => $user) 2141 2143 if ($binfo->{revavail} || $binfo->{revpartial}); 2142 2144
Note:
See TracChangeset
for help on using the changeset viewer.