Skip to content

Commit a992e86

Browse files
asaezpercodebot
authored andcommitted
gnb: metrics parameters parsing fixed
1 parent ea47e36 commit a992e86

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/gnb/gnb_appconfig_cli11_schema.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ static void configure_cli11_metrics_args(CLI::App& app, metrics_appconfig& metri
199199
app.add_option("--enable_json_metrics", metrics_params.enable_json_metrics, "Enable JSON metrics reporting")
200200
->always_capture_default();
201201

202-
app.add_option("--addr", metrics_params.addr, "Metrics address.")->capture_default_str();
203-
app.add_option("--port", metrics_params.port, "Metrics UDP port.")->capture_default_str();
202+
app.add_option("--addr", metrics_params.addr, "Metrics address.")->capture_default_str()->check(CLI::ValidIPV4);
203+
app.add_option("--port", metrics_params.port, "Metrics UDP port.")
204+
->capture_default_str()
205+
->check(CLI::Range(0, 65535));
204206

205207
app.add_option(
206208
"--autostart_stdout_metrics", metrics_params.autostart_stdout_metrics, "Autostart stdout metrics reporting")

configs/gnb_ru_ran550_tdd_n78_20mhz.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# This example configuration outlines how to configure the srsRAN Project CU/DU to use an O-RU and split 7.2. This is specifically for use
32
# with the Benetel R550 RU. This config will create a single TDD MIMO cell transmitting in band 78, with 20 MHz bandwidth and 30 kHz sub-carrier-spacing.
43
# The parameters used to configure the RU are found in the `ru_ofh` sub-section. This configuration makes used of the OFH Lib from SRS to enable split 7.2.

0 commit comments

Comments
 (0)