From abd556ab3db0f44305fbcd681d59d59ffd2a2b90 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 4 Sep 2017 16:26:08 +0200 Subject: 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 --- src/osmo_gsm_tester/osmo_nitb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/osmo_gsm_tester/osmo_nitb.py') 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 -- cgit v1.2.3