summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorwangmenglan <[email protected]>2024-09-25 18:52:27 +0800
committerwangmenglan <[email protected]>2024-09-25 18:59:08 +0800
commitad96bf00c1e7e123b7c4e513bedabd9850b3a7b7 (patch)
tree6518a7ca939cd853b7e2dd0153e3770d1413a9d5 /plugin
parent707b4182506ed31afc1f5fe290974b40e3f88311 (diff)
PXY_INTERCEPT_RULE,SERVICE_CHAINING_RULE adapt uuid
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/chaining-policy/src/chaining_policy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/business/chaining-policy/src/chaining_policy.cpp b/plugin/business/chaining-policy/src/chaining_policy.cpp
index 86ffd68..4edfc92 100644
--- a/plugin/business/chaining-policy/src/chaining_policy.cpp
+++ b/plugin/business/chaining-policy/src/chaining_policy.cpp
@@ -46,10 +46,10 @@ static void chaining_param_new_cb(const char *table_name, const char *key, const
goto error_out;
}
- json_subroot = cJSON_GetObjectItem(json_root, "USER_REGION");
+ json_subroot = cJSON_GetObjectItem(json_root, "action_parameter");
if (unlikely(!json_subroot))
{
- TFE_LOG_ERROR(enforcer->logger, "Invalid chaining rule: %s (invalid USER_REGION format) %s.", key, table_line);
+ TFE_LOG_ERROR(enforcer->logger, "Invalid chaining rule: %s (invalid action_parameter format) %s.", key, table_line);
goto error_out;
}
@@ -139,7 +139,7 @@ struct chaining_policy_enforcer *chaining_policy_enforcer_create(void *logger)
struct chaining_policy_enforcer *enforcer = ALLOC(struct chaining_policy_enforcer, 1);
enforcer->maat = tfe_get_maat_handle();
enforcer->logger = logger;
- snprintf(enforcer->table_name, sizeof(enforcer->table_name), "SERVICE_CHAINING_COMPILE");
+ snprintf(enforcer->table_name, sizeof(enforcer->table_name), "SERVICE_CHAINING_RULE");
ret = maat_plugin_table_ex_schema_register(enforcer->maat, enforcer->table_name,
chaining_param_new_cb,
@@ -148,7 +148,7 @@ struct chaining_policy_enforcer *chaining_policy_enforcer_create(void *logger)
0, enforcer);
if (ret < 0)
{
- TFE_LOG_ERROR(enforcer->logger, "failed at register callback of SERVICE_CHAINING_COMPILE, ret = %d", ret);
+ TFE_LOG_ERROR(enforcer->logger, "failed at register callback of SERVICE_CHAINING_RULE, ret = %d", ret);
goto error_out;
}
return enforcer;