Changeset 941 for trunk


Ignore:
Timestamp:
12/23/22 13:17:53 (2 years ago)
Author:
Kris Deugau
Message:

/trunk

Add termination/demarc node report to admin tools

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/admin.cgi

    r929 r941  
    115115  my $mlist = getMasterList($ip_dbh, 'm');
    116116  $page->param(masterlist => $mlist);
     117
     118  my $nodelist = getNodeList($ip_dbh);
     119  $page->param(nodelist => $nodelist);
    117120}
    118121
     
    363366  my $pool = $ip_dbh->selectrow_array("SELECT cidr FROM allocations WHERE id=?", undef, ($poolid) );
    364367  $page->param(pool => $pool);
     368
     369} elsif ($webvar{action} eq 'nodereport') {
     370  my $nodename = getNodeName($ip_dbh, $webvar{node});
     371  $page->param(node_name => $nodename);
     372  $page->param(node => $webvar{node});
     373  $page->param(webpath => $IPDB::webpath);
     374# can't use this until any disjoint between allocation IDs and pool IP IDs is resolved.
     375#  my $alloclist = $ip_dbh->selectall_arrayref("SELECT cidr,custid,type,description FROM searchme WHERE node_id = ?",
     376#       { Slice => {} }, $webvar{node_id});
     377  my $alloclist = $ip_dbh->selectall_arrayref("SELECT a.id,a.cidr,a.custid,at.dispname,a.circuitid,a.description FROM allocations a".
     378        " JOIN noderef nr ON a.cidr=nr.block JOIN alloctypes at ON a.type=at.type".
     379        " WHERE nr.node_id = ? AND NOT a.type LIKE '_m'",
     380        { Slice => {} }, $webvar{node});
     381  $page->param(alloclist => $alloclist);
    365382
    366383} elsif ($webvar{action} eq 'showusers') {
Note: See TracChangeset for help on using the changeset viewer.