Skip to content

Commit 6b15817

Browse files
FabianEckermannFabian Eckermann
authored andcommitted
cu_cp: improve cell (de-)activation
1 parent a82f14e commit 6b15817

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

lib/cu_cp/routines/cell_activation_routine.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,22 @@ void cell_activation_routine::operator()(coro_context<async_task<void>>& ctx)
4545
}
4646

4747
if (!generate_gnb_cu_configuration_update()) {
48-
logger.warning("Failed to generate gNB-CU configuration update for DU {}", *du_idx_it);
48+
logger.warning("Failed to generate gNB-CU configuration update for du={}", *du_idx_it);
4949
continue;
5050
}
5151

5252
CORO_AWAIT_VALUE(f1ap_cu_cfg_update_response, du_proc->handle_configuration_update(f1ap_cu_cfg_update));
53+
if (!f1ap_cu_cfg_update_response.success) {
54+
logger.info(
55+
"Configuration update for du={} failed. Cause: {}", *du_idx_it, f1ap_cu_cfg_update_response.cause.value());
56+
routine_success = false;
57+
}
5358
}
5459

55-
if (f1ap_cu_cfg_update_response.success) {
60+
if (routine_success) {
5661
logger.info("\"{}\" finished successfully", name());
5762
} else {
58-
logger.info("\"{}\" failed. Cause: {}", name(), f1ap_cu_cfg_update_response.cause.value());
63+
logger.info("\"{}\" failed", name());
5964
}
6065

6166
CORO_RETURN();

lib/cu_cp/routines/cell_activation_routine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class cell_activation_routine
4646

4747
// (Sub-)Routine results.
4848
f1ap_gnb_cu_configuration_update_response f1ap_cu_cfg_update_response;
49+
bool routine_success = true;
4950

5051
std::unordered_set<plmn_identity> plmns_to_activate;
5152
std::vector<du_index_t> du_indexes;

lib/cu_cp/routines/cell_deactivation_routine.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,22 @@ void cell_deactivation_routine::operator()(coro_context<async_task<void>>& ctx)
7171
}
7272

7373
if (!generate_gnb_cu_configuration_update()) {
74-
logger.warning("Failed to generate gNB-CU configuration update for DU {}", *du_idx_it);
74+
logger.warning("Failed to generate gNB-CU configuration update for du={}", *du_idx_it);
7575
continue;
7676
}
7777

7878
CORO_AWAIT_VALUE(f1ap_cu_cfg_update_response, du_proc->handle_configuration_update(f1ap_cu_cfg_update));
79+
if (!f1ap_cu_cfg_update_response.success) {
80+
logger.info(
81+
"Configuration update for du={} failed. Cause: {}", *du_idx_it, f1ap_cu_cfg_update_response.cause.value());
82+
routine_success = false;
83+
}
7984
}
8085

81-
if (f1ap_cu_cfg_update_response.success) {
86+
if (routine_success) {
8287
logger.info("\"{}\" finished successfully", name());
8388
} else {
84-
logger.info("\"{}\" failed. Cause: {}", name(), f1ap_cu_cfg_update_response.cause.value());
89+
logger.info("\"{}\" failed", name());
8590
}
8691

8792
CORO_RETURN();

lib/cu_cp/routines/cell_deactivation_routine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class cell_deactivation_routine
5454

5555
// (Sub-)Routine results.
5656
f1ap_gnb_cu_configuration_update_response f1ap_cu_cfg_update_response;
57+
bool routine_success = true;
5758

5859
std::unordered_map<ue_index_t, bool> ue_release_status;
5960
std::unordered_map<ue_index_t, bool>::iterator ue_release_status_it;

0 commit comments

Comments
 (0)