example: Maintain different resources.conf for RnD and prod

We still want to maintain this file in the same osmo-gsm-tester repo
because we frequently neef to update the config when adding new
features.

Until now only 1 file was maintained (which was used for RnD setup), and
then when runnin in prod the jenkins script used sed to change the file
to accomodate slightly changes. This way is too hacky, so let's just
maintain too separate files, keeping the original resources.conf key
name used by osmo-gsm-tester free, so that jenkins job can symlink one
of the 2 files to it.

Take the chance to remove OctoBTS and Sysmocell5k from the RnD resources
file, as we don't have those them.

Change-Id: Ifec851c7ac6fca6b294e57dfe86b92f214ae8f42
This commit is contained in:
Pau Espin 2018-03-13 20:05:27 +01:00
parent bfd0b2310c
commit 7ad177f396
3 changed files with 97 additions and 17 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ test_work
state
*.pyc
selftest/trial_test/
example/resources.conf

View File

@ -0,0 +1,96 @@
# all hardware and interfaces available to this osmo-gsm-tester
ip_address:
- addr: 10.42.42.2
- addr: 10.42.42.3
- addr: 10.42.42.4
- addr: 10.42.42.5
- addr: 10.42.42.6
- addr: 10.42.42.7
- addr: 10.42.42.8
- addr: 10.42.42.9
bts:
- label: sysmoBTS 1002
type: osmo-bts-sysmo
ipa_unit_id: 1
addr: 10.42.42.114
band: GSM-1800
direct_pcu: true
ciphers: [a5_0, a5_1, a5_3]
- label: Ettus B200
type: osmo-bts-trx
ipa_unit_id: 6
addr: 10.42.42.50
band: GSM-1800
launch_trx: true
ciphers: [a5_0, a5_1]
- label: sysmoCell 5000
type: osmo-bts-trx
ipa_unit_id: 7
addr: 10.42.42.51
band: GSM-1800
trx_remote_ip: 10.42.42.112
ciphers: [a5_0, a5_1]
- label: OCTBTS 3500
type: osmo-bts-octphy
ipa_unit_id: 8
addr: 10.42.42.52
band: GSM-1800
trx_list:
- hw_addr: 00:0c:90:2e:80:1e
net_device: enp2s0
arfcn:
- arfcn: 512
band: GSM-1800
- arfcn: 514
band: GSM-1800
- arfcn: 516
band: GSM-1800
- arfcn: 518
band: GSM-1800
- arfcn: 520
band: GSM-1800
- arfcn: 540
band: GSM-1900
- arfcn: 542
band: GSM-1900
- arfcn: 544
band: GSM-1900
- arfcn: 546
band: GSM-1900
- arfcn: 548
band: GSM-1900
modem:
- label: sierra_1st
path: '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1.7/1-1.7.2'
ki: 'EBAB63D06C3F546A16C977CB40E57C68'
auth_algo: 'comp128v1'
ciphers: [a5_0, a5_1]
features: ['sms', 'voice', 'ussd', 'gprs', 'sim']
- label: sierra_2nd
path: '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1.7/1-1.7.3'
ki: 'EBD2B5F6CF3374106D0A66C11F922001'
auth_algo: 'comp128v1'
ciphers: [a5_0, a5_1]
features: ['sms', 'voice', 'ussd', 'gprs', 'sim']
- label: ec20
path: '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1.7/1-1.7.6'
ki: '07F35D0A9476646169669401215580E0'
auth_algo: 'comp128v1'
ciphers: [a5_0, a5_1]
features: ['sms', 'ussd', 'gprs', 'sim']
- label: gobi2k
path: '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1.7/1-1.7.5'
ki: '5752B3F43277C35D2D1D957007DF74E2'
auth_algo: 'comp128v1'
ciphers: [a5_0, a5_1]
features: ['gprs', 'sim']

View File

@ -27,23 +27,6 @@ bts:
launch_trx: true
ciphers: [a5_0, a5_1]
- label: sysmoCell 5000
type: osmo-bts-trx
ipa_unit_id: 7
addr: 10.42.42.51
band: GSM-1800
trx_remote_ip: 10.42.42.112
ciphers: [a5_0, a5_1]
- label: OCTBTS 3500
type: osmo-bts-octphy
ipa_unit_id: 8
addr: 10.42.42.52
band: GSM-1800
trx_list:
- hw_addr: 00:0c:90:2e:80:1e
net_device: enp2s0
arfcn:
- arfcn: 512
band: GSM-1800