Changeset 812


Ignore:
Timestamp:
03/08/16 13:56:43 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Update listSummary() to slice by VRF. See #54.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r811 r812  
    896896sub listSummary {
    897897  my $dbh = shift;
    898 
    899   my $mlist = $dbh->selectall_arrayref("SELECT cidr AS master,id,vrf FROM allocations ".
    900         "WHERE type='mm' ORDER BY cidr",
    901         { Slice => {} });
     898  my $vrf = shift;
     899
     900  my $mlist = $dbh->selectall_arrayref("SELECT cidr AS master,id FROM allocations ".
     901        "WHERE type='mm' AND vrf = ? ORDER BY cidr",
     902        { Slice => {} }, $vrf);
    902903
    903904  foreach (@{$mlist}) {
Note: See TracChangeset for help on using the changeset viewer.