X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fconfiguration%2Fconfiguration.go;h=56b9d1ea717d393b23024a20aa0954551d57c698;hb=6844fc19ca285d460e0bb84f33784742aa594bd3;hp=8582edd3a2ed441f418c196f817a78f3fee476b3;hpb=14eb5132c3dca8cdad98e7e5420701b04f452046;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/configuration/configuration.go b/E2Manager/configuration/configuration.go index 8582edd..56b9d1e 100644 --- a/E2Manager/configuration/configuration.go +++ b/E2Manager/configuration/configuration.go @@ -22,8 +22,9 @@ package configuration import ( "errors" "fmt" - "github.com/spf13/viper" "strconv" + + "github.com/spf13/viper" ) type RnibWriterConfig struct { @@ -53,6 +54,7 @@ type Configuration struct { KeepAliveResponseTimeoutMs int KeepAliveDelayMs int E2TInstanceDeletionTimeoutMs int + E2ResetTimeOutSec int GlobalRicId struct { RicId string Mcc string @@ -85,6 +87,8 @@ func ParseConfiguration() *Configuration { config.KeepAliveResponseTimeoutMs = viper.GetInt("keepAliveResponseTimeoutMs") config.KeepAliveDelayMs = viper.GetInt("KeepAliveDelayMs") config.E2TInstanceDeletionTimeoutMs = viper.GetInt("e2tInstanceDeletionTimeoutMs") + //E2ResetTimeOutSec : timeout expiry threshold required for handling reset and thus the time for which the nodeb is under reset connection state. + config.E2ResetTimeOutSec = viper.GetInt("e2ResetTimeOutSec") config.populateGlobalRicIdConfig(viper.Sub("globalRicId")) config.populateRnibWriterConfig(viper.Sub("rnibWriter")) return &config @@ -229,7 +233,7 @@ func validateRicId(ricId string) error { func (c *Configuration) String() string { return fmt.Sprintf("{logging.logLevel: %s, http.port: %d, rmr: { port: %d, maxMsgSize: %d}, routingManager.baseUrl: %s, "+ "notificationResponseBuffer: %d, bigRedButtonTimeoutSec: %d, maxRnibConnectionAttempts: %d, "+ - "rnibRetryIntervalMs: %d, keepAliveResponseTimeoutMs: %d, keepAliveDelayMs: %d, e2tInstanceDeletionTimeoutMs: %d, "+ + "rnibRetryIntervalMs: %d, keepAliveResponseTimeoutMs: %d, keepAliveDelayMs: %d, e2tInstanceDeletionTimeoutMs: %d,e2ResetTimeOutSec: %d,"+ "globalRicId: { ricId: %s, mcc: %s, mnc: %s}, rnibWriter: { stateChangeMessageChannel: %s, ranManipulationChannel: %s}", c.Logging.LogLevel, c.Http.Port, @@ -243,6 +247,7 @@ func (c *Configuration) String() string { c.KeepAliveResponseTimeoutMs, c.KeepAliveDelayMs, c.E2TInstanceDeletionTimeoutMs, + c.E2ResetTimeOutSec, c.GlobalRicId.RicId, c.GlobalRicId.Mcc, c.GlobalRicId.Mnc,