Skip to content

Commit dd46594

Browse files
FabianEckermanncodebot
authored andcommitted
cu_cp: add console output for failed du/cu-up connections and failed ue creations
1 parent ac29087 commit dd46594

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

lib/cu_cp/cu_up_processor/cu_up_processor_repository.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ cu_up_index_t cu_up_processor_repository::add_cu_up(std::unique_ptr<e1ap_message
3131
{
3232
cu_up_index_t cu_up_index = allocate_cu_up_index();
3333
if (cu_up_index == cu_up_index_t::invalid) {
34-
logger.warning("CU-UP connection failed - maximum number of CU-UPs connected ({})",
34+
logger.warning("CU-UP connection failed. Cause: Maximum number of CU-UPs connected ({})",
3535
cfg.cu_cp.admission.max_nof_cu_ups);
36+
fmt::print(
37+
"CU-UP connection failed. Cause: Maximum number of CU-UPs connected ({}). To increase the number of allowed "
38+
"CU-UPs change the \"--max_nof_cu_ups\" in the CU-CP configuration\n",
39+
cfg.cu_cp.admission.max_nof_cu_ups);
3640
return cu_up_index_t::invalid;
3741
}
3842

lib/cu_cp/du_processor/du_processor_repository.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ du_index_t du_processor_repository::add_du(std::unique_ptr<f1ap_message_notifier
3232
{
3333
du_index_t du_index = get_next_du_index();
3434
if (du_index == du_index_t::invalid) {
35-
logger.warning("DU connection failed - maximum number of DUs connected ({})", cfg.cu_cp.admission.max_nof_dus);
35+
logger.warning("DU connection failed. Cause: Maximum number of DUs connected ({})",
36+
cfg.cu_cp.admission.max_nof_dus);
37+
fmt::print("DU connection failed. Cause: Maximum number of DUs connected ({}). To increase the number of allowed "
38+
"DUs change the \"--max_nof_dus\" in the CU-CP configuration\n",
39+
cfg.cu_cp.admission.max_nof_dus);
3640
return du_index_t::invalid;
3741
}
3842

lib/cu_cp/ue_manager/ue_manager_impl.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ ue_index_t ue_manager::add_ue(du_index_t du_index,
6565
}
6666

6767
if (ues.size() == max_nof_ues) {
68-
logger.warning("CU-CP UE creation Failed. Cause: Maximum number of UEs {} supported by the CU-CP has been reached",
69-
max_nof_ues);
68+
logger.warning(
69+
"CU-CP UE creation Failed. Cause: Maximum number of UEs supported by the CU-CP ({}) has been reached",
70+
max_nof_ues);
71+
fmt::print("CU-CP UE creation failed. Cause: Maximum number of UEs supported by the CU-CP ({}) has been reached. "
72+
"To increase the number of supported "
73+
"UEs change the \"--max_nof_ues\" in the CU-CP configuration\n",
74+
max_nof_ues);
7075
return ue_index_t::invalid;
7176
}
7277

0 commit comments

Comments
 (0)