mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Added interface modules to db (to next relations with this interfaces)
This commit is contained in:
parent
f18f2e1068
commit
36fda7a23d
@ -407,10 +407,6 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
||||
// Try to get the interface name
|
||||
if (preg_match ("/(.+)_ifOperStatus$/" , (string)$module['nombre'], $matches)) {
|
||||
if ($matches[1]) {
|
||||
$have_relations_a = db_get_value('id', 'tmodule_relationship', 'module_a', $module['id_agente_modulo']);
|
||||
$have_relations_b = db_get_value('id', 'tmodule_relationship', 'module_b', $module['id_agente_modulo']);
|
||||
|
||||
if ($have_relations_a || $have_relations_b) {
|
||||
$module['nombre'] = $matches[1];
|
||||
|
||||
// Save node parent information to define edges later
|
||||
@ -418,7 +414,6 @@ function networkmap_generate_dot ($pandora_name, $group = 0,
|
||||
|
||||
// Add node
|
||||
$nodes[$node_count] = $module;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -1877,23 +1877,6 @@ function add_interface_link_js () {
|
||||
|
||||
graph.links.push(temp_link);
|
||||
|
||||
$("#layer_graph_links_" + networkmap_id).remove();
|
||||
$("#layer_graph_nodes_" + networkmap_id).remove();
|
||||
|
||||
window.layer_graph_links = window.layer_graph
|
||||
.append("g")
|
||||
.attr("id", "layer_graph_links_" + networkmap_id);
|
||||
window.layer_graph_nodes = window.layer_graph
|
||||
.append("g")
|
||||
.attr("id", "layer_graph_nodes_" + networkmap_id);
|
||||
|
||||
force.nodes(graph.nodes)
|
||||
.links(graph.links)
|
||||
.start();
|
||||
|
||||
window.node = layer_graph_nodes.selectAll(".node");
|
||||
window.link = layer_graph_links.selectAll(".link");
|
||||
|
||||
draw_elements_graph();
|
||||
init_drag_and_drop();
|
||||
set_positions_graph();
|
||||
|
Loading…
x
Reference in New Issue
Block a user