summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-10-17 14:53:26 +0800
committerfengweihao <[email protected]>2024-10-17 14:53:26 +0800
commit9a437cb057df87d696c1c9c26de9eb1dad15d7a9 (patch)
tree2bbfcab480e40dc7f8e6d166c9ba8e7b21bd67d7 /plugin
parent48cba684fe27741b60ef3169013ef97225ced5f4 (diff)
Fix rule_uuid setting issue in policy metric and adapt TRAFFICS_MIRROR_PROFILE table name change
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/traffic-mirror/src/entry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/business/traffic-mirror/src/entry.cpp b/plugin/business/traffic-mirror/src/entry.cpp
index c10eac5..aa79d63 100644
--- a/plugin/business/traffic-mirror/src/entry.cpp
+++ b/plugin/business/traffic-mirror/src/entry.cpp
@@ -521,13 +521,13 @@ int traffic_mirror_init(struct tfe_proxy * proxy)
goto errout;
}
- result = maat_plugin_table_ex_schema_register(instance->maat_feather, "TSG_PROFILE_TRAFFIC_MIRROR",
+ result = maat_plugin_table_ex_schema_register(instance->maat_feather, "TRAFFICS_MIRROR_PROFILE",
profile_table_ex_data_new_cb, profile_table_ex_data_free_cb, profile_table_ex_data_dup_cb,
0, instance);
if (unlikely(result < 0))
{
- TFE_LOG_ERROR(instance->logger, "failed at Maat_plugin_EX_register(TSG_PROFILE_TRAFFIC_MIRROR)");
+ TFE_LOG_ERROR(instance->logger, "failed at Maat_plugin_EX_register(TRAFFICS_MIRROR_PROFILE)");
goto errout;
}
@@ -610,7 +610,7 @@ int traffic_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
if (policy_ex_data->is_profile_set)
{
uuid_unparse(policy_ex_data->profile_uuid, profile_uuid_str);
- profile_ex_data = (struct profile_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, "TSG_PROFILE_TRAFFIC_MIRROR", (const char *)profile_uuid_str, strlen(profile_uuid_str));
+ profile_ex_data = (struct profile_table_ex_data *)maat_plugin_table_get_ex_data(instance->maat_feather, "TRAFFICS_MIRROR_PROFILE", (const char *)profile_uuid_str, strlen(profile_uuid_str));
if (!profile_ex_data)
{
TFE_LOG_ERROR(instance->logger, "failed at getting policy %s's profile, profile id = %s, "