path: root/example
diff options
authorPau Espin Pedrol <pespin@sysmocom.de>2017-08-28 18:07:40 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-09-14 17:41:48 +0200
commit82aed176a824d64925142a140e3b0e7c67045508 (patch)
tree6de409bae471f5adf6c635603725634694a6a90e /example
parente9f6917f3229f67958c503943cd4d934d4a514fc (diff)
Reserve ARFCN dynamically based on BTS band supportpespin/arfcn
Instead of statically specifying a band for a BTS to use, declare a list of supported bands for each BTS. At the time of BTS object creation, ask the BTS for band support and try to dynamically reserve an ARFCN resource which is compatible with any of the bands supported by the BTS. All this happens transparently to the test. Still, the test may want to use a specific band / arfcn. In this case, a test can use suite.reserve_arfcn(band, arfcn) to reserve a specific band/arfcn and pass that to the BTS at creation time, which will then use that one instead of trying to find a suitable one. It is left as future work to support BTs with multiple TRX, in which case several arfcn must be reserved. It should not be that difficult, mostly using "times: X" where X is the amount of trx, changing the API to use a list of arfcns and the configure() methods of the BTS. Related: OS#2230 Change-Id: I6fb5d95bed1fa50c3deaf62a7a6df3cb276bc3c9
Diffstat (limited to 'example')
4 files changed, 8 insertions, 4 deletions
diff --git a/example/default-suites.conf b/example/default-suites.conf
index 1e8d47a..7fc97d3 100644
--- a/example/default-suites.conf
+++ b/example/default-suites.conf
@@ -7,3 +7,4 @@
- smpp
- aoip_smpp
- aoip_encryption:cipher-a50+cipher-a51
+- register:band-1900
diff --git a/example/defaults.conf b/example/defaults.conf
index e2921a4..66cf56b 100644
--- a/example/defaults.conf
+++ b/example/defaults.conf
@@ -35,7 +35,6 @@ bsc_bts:
- nominal_power: 23
max_power_red: 0
- arfcn: 868
- phys_chan_config: CCCH+SDCCH4
- phys_chan_config: SDCCH8
diff --git a/example/resources.conf b/example/resources.conf
index 3daf677..d924e8e 100644
--- a/example/resources.conf
+++ b/example/resources.conf
@@ -12,14 +12,14 @@ bts:
type: osmo-bts-sysmo
ipa_unit_id: 1
- band: GSM-1800
+ bands: ['GSM-850', 'GSM-900', 'GSM-1800', 'GSM-1900']
ciphers: [a5_0, a5_1, a5_3]
- label: Ettus B200
type: osmo-bts-trx
ipa_unit_id: 6
- band: GSM-1800
+ bands: ['GSM-1800', 'GSM-1900']
launch_trx: true
ciphers: [a5_0, a5_1]
@@ -27,7 +27,7 @@ bts:
type: osmo-bts-trx
ipa_unit_id: 7
- band: GSM-1800
+ bands: ['GSM-1800']
ciphers: [a5_0, a5_1]
diff --git a/example/scenarios/band-1900.conf b/example/scenarios/band-1900.conf
new file mode 100644
index 0000000..956c8db
--- /dev/null
+++ b/example/scenarios/band-1900.conf
@@ -0,0 +1,4 @@
+ bts:
+ - bands:
+ - GSM-1900