Changeset 816 for trunk/cgi-bin
- Timestamp:
- 03/10/16 15:07:44 (9 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r815 r816 675 675 return ('OK',$newvrf); 676 676 } # end addVRF() 677 678 679 ## IPDB::getVRF() 680 # Retrieve additional fields from DB for a VRF 681 sub getVRF { 682 my $dbh = shift; 683 my $vrf = shift; 684 685 return $dbh->selectrow_hashref("SELECT comment,location FROM vrfs WHERE vrf = ?", {Slice=>{}}, $vrf); 686 } # end getVRF() 677 687 678 688 -
trunk/cgi-bin/main.cgi
r815 r816 154 154 } 155 155 156 my $vrf = getVRF($ip_dbh, $webvar{vrf}); 157 156 158 # Retrieve the list of DNS locations if we've got a place to grab them from 157 159 if ($IPDB::rpc_url) { … … 159 161 rpcuser => $authuser, 160 162 group => 1, # bleh 161 defloc => '',163 defloc => $vrf->{location}, 162 164 ); 163 165 my $result = IPDB::_rpc('getLocDropdown', %rpcargs);
Note:
See TracChangeset
for help on using the changeset viewer.