aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/osmo_nitb.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-09-04 16:26:08 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-09-16 21:59:44 +0200
commitabd556ab3db0f44305fbcd681d59d59ffd2a2b90 (patch)
treed708db1b11ce0e7930f0ef6850c81b731c3312d8 /src/osmo_gsm_tester/osmo_nitb.py
parentcbc724204c212988b97122f723414698bb602dcc (diff)
Use own format to specify encryption algorithm
... instead of using the one from from osmo vty directly. This way we avoid having multiple word attribute value and we can skip using quotes in the conf files. Change-Id: I5265cc9990dd5e99dba1f6262b3a8c597a3e958d
Diffstat (limited to 'src/osmo_gsm_tester/osmo_nitb.py')
-rw-r--r--src/osmo_gsm_tester/osmo_nitb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/osmo_nitb.py b/src/osmo_gsm_tester/osmo_nitb.py
index 8f91bbd..b0a706d 100644
--- a/src/osmo_gsm_tester/osmo_nitb.py
+++ b/src/osmo_gsm_tester/osmo_nitb.py
@@ -82,7 +82,10 @@ class OsmoNitb(log.Origin):
# runtime parameters:
if self.encryption is not None:
- config.overlay(values, dict(nitb=dict(net=dict(encryption=self.encryption))))
+ encryption_vty = util.encryption2osmovty(self.encryption)
+ else:
+ encryption_vty = util.encryption2osmovty(values['nitb']['net']['encryption'])
+ config.overlay(values, dict(nitb=dict(net=dict(encryption=encryption_vty))))
self.config = values