diff options
| author | luwenpeng <[email protected]> | 2024-10-24 14:32:17 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-10-24 16:13:57 +0800 |
| commit | 2ead67ef4fea41d68e7c322b062c7e51ed9d6232 (patch) | |
| tree | 2ca85023e9fb3282c3f70d424d04d84186f7ab40 /plugin/business/traffic-mirror/src/entry.cpp | |
| parent | 5c05bf4c2d2c0ffba489840eca60532329ddd807 (diff) | |
TSG-22784 TFE适配TRAFFIC_MIRROR_PROFIL库表字段变更
Diffstat (limited to 'plugin/business/traffic-mirror/src/entry.cpp')
| -rw-r--r-- | plugin/business/traffic-mirror/src/entry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/business/traffic-mirror/src/entry.cpp b/plugin/business/traffic-mirror/src/entry.cpp index 13073c2..cf87ce8 100644 --- a/plugin/business/traffic-mirror/src/entry.cpp +++ b/plugin/business/traffic-mirror/src/entry.cpp @@ -131,10 +131,10 @@ void policy_table_ex_data_new_cb(const char *table_name, const char *key, const goto error_out; } - subobj = cJSON_GetObjectItem(object, "traffic_mirror"); + subobj = cJSON_GetObjectItem(object, "traffic_mirroring"); if (unlikely(!subobj)) { - TFE_LOG_ERROR(instance->logger, "invalid format, traffic_mirror is not defined, %s", table_line); + TFE_LOG_ERROR(instance->logger, "invalid format, traffic_mirroring is not defined, %s", table_line); goto error_out; } @@ -147,7 +147,7 @@ void policy_table_ex_data_new_cb(const char *table_name, const char *key, const item = cJSON_GetObjectItem(subobj, "enable"); if (unlikely(!item || !cJSON_IsNumber(item))) { - TFE_LOG_ERROR(instance->logger, "invalid JSON, traffic_mirror->enable not existed or invalid type."); + TFE_LOG_ERROR(instance->logger, "invalid JSON, traffic_mirroring->enable not existed or invalid type."); goto error_out; } @@ -157,10 +157,10 @@ void policy_table_ex_data_new_cb(const char *table_name, const char *key, const goto success; } - item = cJSON_GetObjectItem(subobj, "mirror_profile"); + item = cJSON_GetObjectItem(subobj, "mirroring_profile"); if (unlikely(!item || !cJSON_IsString(item))) { - TFE_LOG_DEBUG(instance->logger, "traffic_mirror->mirror_profile not existed, user default vlan id :%d.", instance->default_vlan_id); + TFE_LOG_DEBUG(instance->logger, "traffic_mirroring->mirroring_profile not existed, user default vlan id :%d.", instance->default_vlan_id); ex_data->is_profile_set = 0; uuid_clear(ex_data->profile_uuid); } |
