osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-s1gw/+/37047?usp=email )


Change subject: config/sys.config: add default environment params
......................................................................

config/sys.config: add default environment params

Change-Id: Ie5ec9f62d77407152e18ea3c20cf401151fa6aea
---
M config/sys.config
M src/osmo_s1gw_sup.erl
2 files changed, 22 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-s1gw refs/changes/47/37047/1

diff --git a/config/sys.config b/config/sys.config
index dcace60..8055631 100644
--- a/config/sys.config
+++ b/config/sys.config
@@ -1,6 +1,16 @@
 %% -*- erlang -*-

-[{kernel,
+[%% ===========================================
+ %% application config
+ %% ===========================================
+ {osmo_s1gw,
+  [{s1gw_bind_addr, "127.0.1.1"}, %% S1GW bind address for incoming eNB 
connections
+   {mme_addr, "127.0.2.1"} %% MME address for outgoing connections
+  ]},
+ %% ===========================================
+ %% kernel config
+ %% ===========================================
+ {kernel,
   [{logger_level, info},
    {logger,
     [{handler, default, logger_std_h,
diff --git a/src/osmo_s1gw_sup.erl b/src/osmo_s1gw_sup.erl
index a62f266..4c93756 100644
--- a/src/osmo_s1gw_sup.erl
+++ b/src/osmo_s1gw_sup.erl
@@ -8,9 +8,9 @@

 -define(SERVER, ?MODULE).
 -define(ENV_APP_NAME, osmo_s1gw).
--define(ENV_DEFAULT_S1GW_BIND_ADDR, "0.0.0.0").
+-define(ENV_DEFAULT_S1GW_BIND_ADDR, "127.0.1.1").
 -define(ENV_DEFAULT_S1GW_BIND_PORT, ?S1AP_PORT).
--define(ENV_DEFAULT_MME_ADDR, "127.0.0.1").
+-define(ENV_DEFAULT_MME_ADDR, "127.0.2.1").
 -define(ENV_DEFAULT_MME_PORT, ?S1AP_PORT).

 %% ------------------------------------------------------------------

--
To view, visit https://gerrit.osmocom.org/c/osmo-s1gw/+/37047?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Ie5ec9f62d77407152e18ea3c20cf401151fa6aea
Gerrit-Change-Number: 37047
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osm...@sysmocom.de>
Gerrit-CC: fixeria <vyanits...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to