Commit e19fe64f authored by Thomas Goirand's avatar Thomas Goirand

Fix vmnet_ip in the controller.

parent e2f7efda
......@@ -481,7 +481,7 @@ function api_actions($con,$conf){
}
// Get the IP for VM trafic.
$q = "SELECT machines.hostname AS hostname, INET_NTOA(ips.ip) AS ipaddr FROM machines, ips, networks WHERE machines.id='$machine_id' AND machines.cluster='$cluster_id' AND machines.id=ips.machine AND ips.network=networks.id AND networks.is_public='no' AND networks.role='vm-net' AND networks.role='ovs-bridge'";
$q = "SELECT machines.hostname AS hostname, INET_NTOA(ips.ip) AS ipaddr FROM machines, ips, networks WHERE machines.id='$machine_id' AND machines.cluster='$cluster_id' AND machines.id=ips.machine AND ips.network=networks.id AND networks.is_public='no' AND networks.role='vm-net'";
$r = mysqli_query($con, $q);
if($r === FALSE){
$json["status"] = "error";
......
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