|
62 | 62 | #include "apps/services/metrics_plotter_json.h" |
63 | 63 | #include "apps/services/metrics_plotter_stdout.h" |
64 | 64 | #include "apps/units/cu_cp/cu_cp_builder.h" |
| 65 | +#include "apps/units/cu_cp/cu_cp_unit_config_yaml_writer.h" |
65 | 66 | #include "apps/units/cu_cp/pcap_factory.h" |
66 | 67 | #include "apps/units/cu_up/cu_up_builder.h" |
| 68 | +#include "apps/units/cu_up/cu_up_unit_config_yaml_writer.h" |
67 | 69 | #include "apps/units/cu_up/pcap_factory.h" |
68 | 70 | #include "apps/units/flexible_du/du_high/pcap_factory.h" |
69 | 71 | #include "apps/units/flexible_du/split_dynamic/dynamic_du_unit_cli11_schema.h" |
70 | 72 | #include "apps/units/flexible_du/split_dynamic/dynamic_du_unit_config_validator.h" |
| 73 | +#include "apps/units/flexible_du/split_dynamic/dynamic_du_unit_config_yaml_writer.h" |
71 | 74 | #include "apps/units/flexible_du/split_dynamic/dynamic_du_unit_logger_registrator.h" |
72 | 75 | #include "srsran/support/cli11_utils.h" |
73 | 76 |
|
| 77 | +#include <yaml-cpp/node/convert.h> |
| 78 | + |
74 | 79 | #ifdef DPDK_FOUND |
75 | 80 | #include "srsran/hal/dpdk/dpdk_eal_factory.h" |
76 | 81 | #endif |
@@ -241,6 +246,14 @@ int main(int argc, char** argv) |
241 | 246 | // Refesh defaults in case some parameters may have changed after the autoderivation process. |
242 | 247 | refresh_defaults(app); |
243 | 248 | config_logger.debug("Input configuration (all values): \n{}", app.config_to_str(true, false)); |
| 249 | + |
| 250 | + config_logger.debug("NOW IT GOES THE MANUAL CONFIG"); |
| 251 | + YAML::Node node; |
| 252 | + fill_cu_up_config_in_yaml_schema(node, cu_up_config); |
| 253 | + fill_cu_cp_config_in_yaml_schema(node, cu_cp_config); |
| 254 | + fill_dynamic_du_unit_config_in_yaml_schema(node, du_unit_cfg); |
| 255 | + config_logger.debug("CU-UP config values: \n{}", YAML::Dump(node)); |
| 256 | + |
244 | 257 | } else { |
245 | 258 | config_logger.info("Input configuration (only non-default values): \n{}", app.config_to_str(false, false)); |
246 | 259 | } |
|
0 commit comments