Changeset 808 for trunk/cgi-bin/main.cgi
- Timestamp:
- 03/08/16 13:16:44 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r806 r808 108 108 if($webvar{action} eq 'index') { 109 109 showSummary(); 110 } elsif ($webvar{action} eq 'showvrf') { 111 showVRF(); 110 112 } elsif ($webvar{action} eq 'addmaster') { 111 113 if ($IPDBacl{$authuser} !~ /a/) { … … 269 271 270 272 273 # Show IP blocks in a VRF 274 sub showVRF { 275 my $masterlist = listSummary($ip_dbh, $webvar{vrf}); 276 $page->param(vrf => $webvar{vrf}); 277 $page->param(masterlist => $masterlist); 278 279 # we don't have a netblock; pass 0 for the block ID 280 # Tree navigation 281 my $crumbs = getBreadCrumbs($ip_dbh, 0, $webvar{vrf}); 282 my @rcrumbs = reverse (@$crumbs); 283 $utilbar->param(breadcrumb => \@rcrumbs); 284 285 $page->param(addmaster => ($IPDBacl{$authuser} =~ /s/) ); 286 } # showVRF 287 288 271 289 # Display blocks immediately within a given parent 272 290 sub showSubs { … … 306 324 #$page->param(editme => 1) unless $pinfo->{type} ne 'mm'; 307 325 308 my $crumbs = getBreadCrumbs($ip_dbh, $pinfo->{parent_id} );326 my $crumbs = getBreadCrumbs($ip_dbh, $pinfo->{parent_id}, $pinfo->{vrf}); 309 327 my @rcrumbs = reverse (@$crumbs); 310 328 $utilbar->param(breadcrumb => \@rcrumbs);
Note:
See TracChangeset
for help on using the changeset viewer.