Changeset 811 for trunk/cgi-bin/main.cgi
- Timestamp:
- 03/08/16 13:54:14 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r810 r811 126 126 $page->param(loclist => $result); 127 127 } 128 129 } elsif ($webvar{action} eq 'newvrf') { 130 if ($IPDBacl{$authuser} !~ /s/) { 131 $aclerr = 'addvrf'; 132 } else { 133 my ($code,$msg) = addVRF($ip_dbh, $webvar{vrf}, comment => $webvar{comment}, location => $webvar{loc}); 134 135 if ($code eq 'FAIL') { 136 syslog "err", "Could not add VRF '$webvar{vrf}' to database: '$msg'"; 137 $page->param(err => $msg); 138 $page->param(vrf => $webvar{vrf}); 139 } else { 140 $page->param(vrf => $msg); 141 if ($code eq 'WARN') { 142 $IPDB::errstr =~ s/\n\n/<br>\n/g; 143 $IPDB::errstr =~ s/:\n/:<br>\n/g; 144 $page->param(warn => $IPDB::errstr); 145 } 146 syslog "info", "$authuser added VRF $webvar{vrf}"; 147 } 148 149 } # ACL check 128 150 129 151 } elsif ($webvar{action} eq 'addmaster') {
Note:
See TracChangeset
for help on using the changeset viewer.