Changeset 806 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
03/07/16 18:05:24 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Promote VRFs to top-level entities. See #54.

1 of mumble; convert index page to list VRFs instead of master blocks.

File:
1 edited

Legend:

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

    r800 r806  
    259259
    260260
    261 # Initial display:  Show master blocks with total allocated subnets, total free subnets
     261# Initial display:  Show list of VRFs
    262262sub showSummary {
    263   my $masterlist = listSummary($ip_dbh);
    264   $page->param(masterlist => $masterlist);
    265 
    266   $page->param(addmaster => ($IPDBacl{$authuser} =~ /a/) );
     263  my $vrflist = listVRF($ip_dbh);
     264  $page->param(vrflist => $vrflist);
     265
     266  # Only systems/network should be allowed to add VRFs - or maybe higher?
     267  $page->param(addvrf => ($IPDBacl{$authuser} =~ /s/) );
    267268} # showSummary
    268269
Note: See TracChangeset for help on using the changeset viewer.