From 0cc8e268334d34d20338a6e2260cc76da6b9bd43 Mon Sep 17 00:00:00 2001 From: Alexandre Huff Date: Tue, 26 Sep 2023 11:48:26 -0300 Subject: [PATCH] Fix conflicting RMR port number The config.yaml file is configured to use port 4561 as port number for rmrdata that conflicts with the rmrroute port used to exchange messages with rtmgr. This issue causes RMR to associate two different file descriptors with port 4561. As a result, and A1 messages coming from xApps are not processed by A1 mediator. This change fixes the port number to 4562 in config.yaml file. Issue-ID: RIC-1012 Change-Id: Ib4231ff1206afce6c1308ed94a7a1b1e265b4cf3 Signed-off-by: Alexandre Huff --- config/config.yaml | 2 +- config/configuration.go | 2 +- config/configuration_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index 52d906d..c6d9598 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -21,4 +21,4 @@ THREAD_TYPE: 0 LOW_LATENCY: false FAST_ACK: false MAX_RETRY_ON_FAILURE: 1 -PORT : 4561 \ No newline at end of file +PORT : 4562 \ No newline at end of file diff --git a/config/configuration.go b/config/configuration.go index e67083a..fecc000 100644 --- a/config/configuration.go +++ b/config/configuration.go @@ -64,6 +64,6 @@ func ParseConfiguration() *Configuration { config.MaxRetryOnFailure = viper.GetInt("MAX_RETRY_ON_FAILURE") viper.SetDefault("MAX_RETRY_ON_FAILURE", 1) config.Port = viper.GetInt("PORT") - viper.SetDefault("PORT", 4561) + viper.SetDefault("PORT", 4562) return &config } diff --git a/config/configuration_test.go b/config/configuration_test.go index 3c83597..aeae5af 100644 --- a/config/configuration_test.go +++ b/config/configuration_test.go @@ -36,5 +36,5 @@ func TestParseConfigurationSuccess(t *testing.T) { assert.Equal(t, false, config.LowLatency) assert.Equal(t, false, config.FastAck) assert.Equal(t, 1, config.MaxRetryOnFailure) - assert.Equal(t, 4561, config.Port) + assert.Equal(t, 4562, config.Port) } -- 2.16.6