aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-04-01 13:55:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-04-01 15:22:14 +0200
commitc04528cb1fabe970f7ac28ca98fcfbfbc9e9c41f (patch)
treeac438295edbd16aca963013e9431308dee5d7c8a /example
parent7225d52e39c7aa305e27d6642942b6bb6b4b5ea3 (diff)
Make amarisoft license server optional
* Since license_server_addr logic is generic among all amarisoft software, let's move it to its own config category "amarisoft", which all amarisoft classes (amarisoft_{enb,epc}.py as of now) will import during configure(). * The license server is disabled by default (value 0.0.0.0) since the usual case is to have a license in the local system. * the license server can be enabled using scenario cfg-amarisoft-license@A.B.C.D where A.B.C.D is the address to use. Change-Id: Id5456ad9497e91370857b80ff9a389111d3611ff
Diffstat (limited to 'example')
-rw-r--r--example/defaults.conf5
-rw-r--r--example/scenarios/cfg-amarisoft-license@.conf3
2 files changed, 5 insertions, 3 deletions
diff --git a/example/defaults.conf b/example/defaults.conf
index 56a41e5..aa1e1dc 100644
--- a/example/defaults.conf
+++ b/example/defaults.conf
@@ -101,8 +101,8 @@ srsepc:
rlc_drb_mode: UM
enable_pcap: false
-amarisoftepc:
- license_server_addr: 10.12.1.139
+amarisoft:
+ license_server_addr: 0.0.0.0
enb:
mcc: 901
@@ -115,7 +115,6 @@ srsenb:
enable_pcap: false
amarisoftenb:
- license_server_addr: 10.12.1.139
num_prb: 100
enable_pcap: false
diff --git a/example/scenarios/cfg-amarisoft-license@.conf b/example/scenarios/cfg-amarisoft-license@.conf
new file mode 100644
index 0000000..3e4813b
--- /dev/null
+++ b/example/scenarios/cfg-amarisoft-license@.conf
@@ -0,0 +1,3 @@
+config:
+ amarisoft:
+ license_server_addr: ${param1}