- xapp.Logger.Info("Using src id %s", os.Getenv("RMR_SRC_ID"))
- //xapp.Logger.Info("Using rtg svc %s", os.Getenv("RMR_RTG_SVC"))
+ if tc.DataPort > 0 {
+ os.Setenv("RMR_SRC_ID", "localhost:"+strconv.FormatUint(uint64(tc.DataPort), 10))
+ xapp.Logger.Info("Using src id %s", os.Getenv("RMR_SRC_ID"))
+ }
+ if tc.RoutePort > 0 {
+ os.Setenv("RMR_RTG_SVC", "localhost:"+strconv.FormatUint(uint64(tc.RoutePort), 10))
+ xapp.Logger.Info("Using rtg svc %s", os.Getenv("RMR_RTG_SVC"))
+ }