srsue.conf.tmpl: fix the configuration of UE params for carrier aggregation
the num_carriers is parsed as a string in the conf dict and therefore
needs to converted to int before matching
also changed the num_carriers to be of type UINT
Change-Id: I1386812d32e1181ba666720bbb875bf9bbce0f51
diff --git a/src/osmo_gsm_tester/resource.py b/src/osmo_gsm_tester/resource.py
index ad8f4b2..bff8282 100644
--- a/src/osmo_gsm_tester/resource.py
+++ b/src/osmo_gsm_tester/resource.py
@@ -109,7 +109,7 @@
'modem[].features[]': schema.MODEM_FEATURE,
'modem[].rf_dev_type': schema.STR,
'modem[].rf_dev_args': schema.STR,
- 'modem[].num_carriers': schema.STR,
+ 'modem[].num_carriers': schema.UINT,
'modem[].additional_args': schema.STR,
'modem[].airplane_t_on_ms': schema.INT,
'modem[].airplane_t_off_ms': schema.INT,
diff --git a/src/osmo_gsm_tester/templates/srsue.conf.tmpl b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
index 90925b3..d97b00c 100644
--- a/src/osmo_gsm_tester/templates/srsue.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
@@ -31,7 +31,7 @@
# Default is auto (yes for UHD, no for rest)
#####################################################################
[rf]
-% if ue.num_carriers == 2:
+% if int(ue.num_carriers) == 2:
dl_earfcn = 2850,3050
% else:
dl_earfcn = 2850
@@ -143,7 +143,7 @@
# mbms_service_port: Port of the MBMS service
#####################################################################
[rrc]
-% if ue.num_carriers == 2:
+% if int(ue.num_carriers) == 2:
ue_category = 7
release = 10
% else: