TSG-14902 tsg-service-chaining-engine适配MAAT4的maat_options_set_stat_file
This commit is contained in:
@@ -229,7 +229,7 @@ static void policy_enforcer_config(const char *profile, struct policy_config *co
|
|||||||
MESA_load_profile_int_def(profile, "MAAT", "deferred_load", &(config->deferred_load), 0);
|
MESA_load_profile_int_def(profile, "MAAT", "deferred_load", &(config->deferred_load), 0);
|
||||||
MESA_load_profile_int_def(profile, "MAAT", "effect_interval_ms", &(config->effect_interval_ms), 1000);
|
MESA_load_profile_int_def(profile, "MAAT", "effect_interval_ms", &(config->effect_interval_ms), 1000);
|
||||||
|
|
||||||
MESA_load_profile_string_def(profile, "MAAT", "stat_file", config->stat_file, sizeof(config->stat_file), "log/sce.fs2");
|
MESA_load_profile_string_def(profile, "MAAT", "stat_file", config->stat_file, sizeof(config->stat_file), "log/maat.fs2");
|
||||||
MESA_load_profile_string_def(profile, "MAAT", "table_info", config->table_info, sizeof(config->table_info), "resource/table_info.conf");
|
MESA_load_profile_string_def(profile, "MAAT", "table_info", config->table_info, sizeof(config->table_info), "resource/table_info.conf");
|
||||||
MESA_load_profile_string_def(profile, "MAAT", "accept_path", config->accept_path, sizeof(config->accept_path), "/opt/tsg/etc/tsg_device_tag.json");
|
MESA_load_profile_string_def(profile, "MAAT", "accept_path", config->accept_path, sizeof(config->accept_path), "/opt/tsg/etc/tsg_device_tag.json");
|
||||||
MESA_load_profile_string_def(profile, "MAAT", "inc_cfg_dir", config->inc_cfg_dir, sizeof(config->inc_cfg_dir), "resource/inc/");
|
MESA_load_profile_string_def(profile, "MAAT", "inc_cfg_dir", config->inc_cfg_dir, sizeof(config->inc_cfg_dir), "resource/inc/");
|
||||||
@@ -1360,9 +1360,8 @@ struct policy_enforcer *policy_enforcer_create(const char *instance, const char
|
|||||||
|
|
||||||
if (enforcer->config.stat_switch)
|
if (enforcer->config.stat_switch)
|
||||||
{
|
{
|
||||||
// TODO enforcer->config.stat_file
|
|
||||||
// Maat4 is not supported temporarily
|
|
||||||
maat_options_set_stat_on(opts);
|
maat_options_set_stat_on(opts);
|
||||||
|
maat_options_set_stat_file(opts, enforcer->config.stat_file);
|
||||||
if (enforcer->config.perf_switch)
|
if (enforcer->config.perf_switch)
|
||||||
{
|
{
|
||||||
maat_options_set_perf_on(opts);
|
maat_options_set_perf_on(opts);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ perf_switch=1
|
|||||||
scan_detail=0
|
scan_detail=0
|
||||||
deferred_load=0
|
deferred_load=0
|
||||||
effect_interval_ms=1000
|
effect_interval_ms=1000
|
||||||
stat_file=./sce.fs2
|
stat_file=./maat.fs2
|
||||||
table_info=test_resource/table_info.conf
|
table_info=test_resource/table_info.conf
|
||||||
accept_path=/opt/tsg/etc/tsg_device_tag.json
|
accept_path=/opt/tsg/etc/tsg_device_tag.json
|
||||||
inc_cfg_dir=test_resource/inc/
|
inc_cfg_dir=test_resource/inc/
|
||||||
|
|||||||
Reference in New Issue
Block a user