Commit 3ff06d16 authored by Christopher Alfeld's avatar Christopher Alfeld
Browse files

Changed to use physical names which are probably more useful.

parent e3eaf7a8
......@@ -527,13 +527,17 @@ if (! &ir_exists("/ip")) {
# Update virt_names table
# Clear table
foreach (split("\n",$ip_section)) {
($src,$dst,$ip) = split;
($vsrc,$vdst,$ip) = split;
$src = $vnodemap{$vsrc};
$dst = $vnodemap{$vdst};
$sth = $dbh->prepare("DELETE from virt_names where src_node_id = \"$src\"");
$sth->execute;
$sth->finish;
}
foreach (split("\n",$ip_section)) {
($src,$dst,$ip) = split;
($vsrc,$vdst,$ip) = split;
$src = $vnodemap{$vsrc};
$dst = $vnodemap{$vdst};
$sth = $dbh->prepare("SELECT src_node_id from virt_names where src_node_id = \"$src\" and dest_node_id = \"$dst\"");
$sth->execute;
$i = $sth->rows();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment