Changeset 740 for trunk/cgi-bin
- Timestamp:
- 06/04/15 15:57:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r739 r740 1075 1075 1076 1076 ## IPDB::listPool() 1077 # 1077 # List the IPs in an IP pool. 1078 # Takes a pool/parent ID 1079 # Returns 1080 # Returns an arrayref to a list of hashrefs containing the IP, customer ID, availability flag, 1081 # description, backreference to the pool/parent, and the IP ID in the pool. 1082 # Also includes a "may be deleted" metaflag mainly useful for allowing the return to be passed 1083 # directly to HTML::Template for UI display. 1078 1084 sub listPool { 1079 1085 my $dbh = shift; … … 1153 1159 ## IPDB::getPoolSelect() 1154 1160 # Get a list of pools matching the passed city and type that have 1 or more free IPs 1155 # Returns an arrayref to a list of hashrefs 1161 # Returns an arrayref to a list of hashrefs containing the number of available IPs, the CIDR pool, 1162 # and the city it's nominally in. 1156 1163 sub getPoolSelect { 1157 1164 my $dbh = shift; … … 1183 1190 # - optional master-block restriction 1184 1191 # - optional flag to allow automatic pick-from-private-network-ranges 1185 # Returns a string with the first CIDR blockmatching the criteria, if any1192 # Returns a 3-element list with the free block ID, CIDR, and parent ID matching the criteria, if any 1186 1193 sub findAllocateFrom { 1187 1194 my $dbh = shift;
Note:
See TracChangeset
for help on using the changeset viewer.