Changeset 869


Ignore:
Timestamp:
05/04/16 17:24:08 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Use the passed pool ID in rpc_listPool() if one is passed instead of a
CIDR+VRF pair

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/ipdb-rpc.cgi

    r866 r869  
    208208  $args{include_desc} = 0 if !$args{include_desc};
    209209
     210  my $pid;
    210211  # convert passed pool from CIDR to an ID, maybe
    211212  if ($args{pool} !~ /^\d+$/) {
     
    214215    ($pid) = $ip_dbh->selectrow_array("SELECT a.id FROM allocations a JOIN allocations m ON a.master_id=m.id".
    215216        " WHERE a.cidr = ? AND m.vrf = ?", undef, $args{pool}, $args{vrf});
     217  } else {
     218    $pid = $args{pool};
    216219  }
    217220
Note: See TracChangeset for help on using the changeset viewer.