2014-06-24 Alejandro Gallardo <alejandro.gallardo@artica.es>
* include/functions_networkmap.php: Modified the function "networkmap_generate_dot" to link the orphan nodes with a central node when selecting the L2 network interfaces option. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10274 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3a56ef0101
commit
755da83707
|
@ -1,3 +1,9 @@
|
|||
2014-06-24 Alejandro Gallardo <alejandro.gallardo@artica.es>
|
||||
|
||||
* include/functions_networkmap.php: Modified the function
|
||||
"networkmap_generate_dot" to link the orphan nodes with a
|
||||
central node when selecting the L2 network interfaces option.
|
||||
|
||||
2014-06-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_extensions.php, index.php: force to load the
|
||||
|
|
|
@ -452,7 +452,6 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
|||
}
|
||||
|
||||
// Define edges for the module interfaces relations
|
||||
if ($l2_network) {
|
||||
// Get the remote_snmp_proc relations
|
||||
$relations = modules_get_relations();
|
||||
if ($relations === false)
|
||||
|
@ -547,9 +546,7 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Define edges for the orphan nodes
|
||||
else {
|
||||
|
||||
// Create a central node if orphan nodes exist
|
||||
if (count ($orphans) || empty ($nodes)) {
|
||||
$graph .= networkmap_create_pandora_node ($pandora_name, $font_size, $simple, $stats);
|
||||
|
@ -559,7 +556,6 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
|||
foreach (array_keys($orphans) as $node) {
|
||||
$graph .= networkmap_create_edge ('0', $node, $layout, $nooverlap, $pure, $zoom, $ranksep, $simple, $regen, $font_size, $group, 'operation/agentes/networkmap', 'topology', $id_networkmap);
|
||||
}
|
||||
}
|
||||
|
||||
// Close graph
|
||||
$graph .= networkmap_close_graph ();
|
||||
|
|
Loading…
Reference in New Issue