mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Merge branch 'ent-12248-mover-token-de-configuracion-s-flow-a-la-seccion-de-netflow' into 'develop'
Ent 12248 mover token de configuracion s flow a la seccion de netflow See merge request artica/pandorafms!6621
This commit is contained in:
commit
874e60bf55
@ -405,19 +405,6 @@ $table->data[$i++][] = html_print_label_input_block(
|
|||||||
|
|
||||||
|
|
||||||
$table->data[$i][] = html_print_label_input_block(
|
$table->data[$i][] = html_print_label_input_block(
|
||||||
__('Enable Sflow'),
|
|
||||||
html_print_checkbox_switch_extended(
|
|
||||||
'activate_sflow',
|
|
||||||
1,
|
|
||||||
$config['activate_sflow'],
|
|
||||||
$rbt_disabled,
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
true
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
$table->data[$i++][] = html_print_label_input_block(
|
|
||||||
__('General network path'),
|
__('General network path'),
|
||||||
html_print_input_text(
|
html_print_input_text(
|
||||||
'general_network_path',
|
'general_network_path',
|
||||||
|
@ -83,6 +83,19 @@ $table->data[3][] = html_print_label_input_block(
|
|||||||
html_print_checkbox_switch_extended('netflow_get_ip_hostname', 1, $config['netflow_get_ip_hostname'], false, $onclick, '', true)
|
html_print_checkbox_switch_extended('netflow_get_ip_hostname', 1, $config['netflow_get_ip_hostname'], false, $onclick, '', true)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$table->data[4][] = html_print_label_input_block(
|
||||||
|
__('Enable Sflow'),
|
||||||
|
html_print_checkbox_switch_extended(
|
||||||
|
'activate_sflow',
|
||||||
|
1,
|
||||||
|
$config['activate_sflow'],
|
||||||
|
$rbt_disabled,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
true
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
echo '<form class="max_floating_element_size" id="netflow_setup" method="post">';
|
echo '<form class="max_floating_element_size" id="netflow_setup" method="post">';
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
html_print_input_hidden('update_config', 1);
|
html_print_input_hidden('update_config', 1);
|
||||||
|
@ -249,10 +249,6 @@ function config_update_config()
|
|||||||
$error_update[] = __('Enable Netflow');
|
$error_update[] = __('Enable Netflow');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config_update_value('activate_sflow', (bool) get_parameter('activate_sflow'), true) === false) {
|
|
||||||
$error_update[] = __('Enable Sflow');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config_update_value('activate_feedback', (bool) get_parameter('activate_feedback'), true) === false) {
|
if (config_update_value('activate_feedback', (bool) get_parameter('activate_feedback'), true) === false) {
|
||||||
$error_update[] = __('Enable Feedback');
|
$error_update[] = __('Enable Feedback');
|
||||||
}
|
}
|
||||||
@ -1623,6 +1619,10 @@ function config_update_config()
|
|||||||
if (config_update_value('netflow_get_ip_hostname', (int) get_parameter('netflow_get_ip_hostname'), true) === false) {
|
if (config_update_value('netflow_get_ip_hostname', (int) get_parameter('netflow_get_ip_hostname'), true) === false) {
|
||||||
$error_update[] = __('Name resolution for IP address');
|
$error_update[] = __('Name resolution for IP address');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config_update_value('activate_sflow', (bool) get_parameter('activate_sflow'), true) === false) {
|
||||||
|
$error_update[] = __('Enable Sflow');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'sflow':
|
case 'sflow':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user