Merge branch 'ent-7117-Guardar-puerto-al-crear-network-component-desde-el-SNMP-Browser' into 'develop'
Ent 7117 guardar puerto al crear network component desde el snmp browser See merge request artica/pandorafms!3943
This commit is contained in:
commit
dd014596d6
|
@ -1187,7 +1187,7 @@ function snmp_browser_create_modules_snmp(
|
|||
}
|
||||
}
|
||||
|
||||
$fail_modules = [];
|
||||
$fail_modules = [];
|
||||
|
||||
foreach ($targets_oids as $key => $target_oid) {
|
||||
$oid = snmp_browser_get_oid(
|
||||
|
@ -1243,7 +1243,7 @@ function snmp_browser_create_modules_snmp(
|
|||
'min' => 0,
|
||||
'tcp_send' => $snmp_version,
|
||||
'tcp_rcv' => '',
|
||||
'tcp_port' => 0,
|
||||
'tcp_port' => $target_port,
|
||||
'snmp_oid' => $oid['numeric_oid'],
|
||||
'snmp_community' => $community,
|
||||
'id_module_group' => 3,
|
||||
|
|
|
@ -141,6 +141,7 @@ function snmp_browser_show_add_module_massive(module_target = 'agent') {
|
|||
|
||||
var title = '<?php echo __('Add modules'); ?>';
|
||||
var snmp_extradata = snmp_browser_create_modules(module_target);
|
||||
snmp_extradata.push({name:"target_port", value:$("#target_port").val()});
|
||||
// Load dinamically modal form.
|
||||
load_modal({
|
||||
form: 'snmp_browser_add_module_form',
|
||||
|
|
Loading…
Reference in New Issue