Change in osmo-gsm-tester[master]: srsenb: Support neighbour and secondary cell lists in config file

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Apr 20 11:30:37 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17894 )


Change subject: srsenb: Support neighbour and secondary cell lists in config file
......................................................................

srsenb: Support neighbour and secondary cell lists in config file

Change-Id: I8fe0703b7d9db69658c112066404d2da1c3d1e09
---
M src/osmo_gsm_tester/templates/srsenb_rr.conf.tmpl
1 file changed, 29 insertions(+), 49 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/94/17894/1

diff --git a/src/osmo_gsm_tester/templates/srsenb_rr.conf.tmpl b/src/osmo_gsm_tester/templates/srsenb_rr.conf.tmpl
index 2dcdb2a..c675d33 100644
--- a/src/osmo_gsm_tester/templates/srsenb_rr.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsenb_rr.conf.tmpl
@@ -62,29 +62,46 @@
 
 cell_list =
 (
+%for cell in enb.cell_list:
+  ${',' if loop.index != 0 else ''}
   {
-    // rf_port = 0;
-    cell_id = 0x01;
+    rf_port = ${loop.index};
+    cell_id = ${cell.cell_id};
     tac = 0x0001;
-    pci = 1;
-    // root_seq_idx = 204;
-    dl_earfcn = 2850;
+    pci = ${loop.index + 1};
+    root_seq_idx = ${loop.index + 204};
+    dl_earfcn = ${cell.dl_earfcn};
     //ul_earfcn = 20850;
     ho_active = false;
 
     // CA cells
     scell_list = (
-      {cell_id = 0x02; cross_carrier_scheduling = false; scheduling_cell_id = 0x02; ul_allowed = true}
+%for scell_id in cell.scell_list:
+        ${',' if loop.index != 0 else ''}
+        {
+          cell_id = ${scell_id};
+          cross_carrier_scheduling = false;
+          scheduling_cell_id = ${cell.cell_id};
+          ul_allowed = true;
+        }
+%endfor
     )
 
     // Cells available for handover
     meas_cell_list =
     (
-      {
-        eci = 0x19C02;
-        dl_earfcn = 2850;
-        pci = 2;
-      }
+%for ncell in enb.cell_list:
+        <% loop.my_num_items = 0 if loop.index == 0 else loop.my_num_items %>
+%if ncell.cell_id in cell.ncell_list:
+        ${',' if loop.my_num_items != 0 else ''}
+        <% loop.my_num_items += 1 %>
+        {
+          eci = ${ncell.cell_id};
+          dl_earfcn = ${ncell.dl_earfcn};
+          pci = ${loop.index + 1};
+        }
+%endif
+%endfor
     );
 
     // ReportCfg (only A3 supported)
@@ -96,42 +113,5 @@
       rsrq_config = 4;
     };
   }
-% if enb.get('num_cells') == '2':
-  ,
-  {
-    rf_port = 1;
-    cell_id = 0x02;
-    tac = 0x0002;
-    pci = 2;
-    root_seq_idx = 205;
-    dl_earfcn = 3050;
-    //ul_earfcn = 21050;
-    ho_active = false;
-
-    // CA cells
-    scell_list = (
-      {cell_id = 0x01; cross_carrier_scheduling = false; scheduling_cell_id = 0x01; ul_allowed = true}
-    )
-
-    // Cells available for handover
-    meas_cell_list =
-    (
-      {
-        eci = 0x19C02;
-        dl_earfcn = 2850;
-        pci = 1;
-      }
-    );
-
-    // ReportCfg (only A3 supported)
-    meas_report_desc = {
-      a3_report_type = "RSRP";
-      a3_offset = 6;
-      a3_hysteresis = 0;
-      a3_time_to_trigger = 480;
-      rsrq_config = 4;
-    };
-  }
-% endif
-  // Add here more cells
+%endfor
 );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17894
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I8fe0703b7d9db69658c112066404d2da1c3d1e09
Gerrit-Change-Number: 17894
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200420/a20a389b/attachment.htm>


More information about the gerrit-log mailing list