From: Alexandre Huff Date: Tue, 26 Sep 2023 14:48:26 +0000 (-0300) Subject: Fix conflicting RMR port number X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F11835%2F1;p=ric-plt%2Fa1.git 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 --- 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) }