aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-08-31 18:49:47 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-09-16 21:59:44 +0200
commitac18fd31e7d69abcf3c00a4415bef50dd0123fb1 (patch)
tree778c5c8f06efe6ea263ace8e82f6c111a6818803 /example
parent32e3372ae28a9047959966eb7752981c0ec1dd02 (diff)
Add features attribute to modems
The idea behind this attribute is similar to the Features one in ofono: To provide an easy-to-use list of features that a modem supports. In osmo-gsm-tester this feature list can be used to create scenarios to act as a filter for modems. For instance, if an sms related feature must be tested, then a modem supporting sms features is required. This way only modems supporting that feature are going to be selected for that test when that scenario is used. We provide our own list instead of dynamically using it for two reasons: - Accessing the list from ofono means powering on + online the modem, which requires using the modem before resource resolution is done. - ofono may state that it has support for feature X, but it still doesn't have all features required by osmo-gsm-tester or there is a bug in some part of the feature which prevents it from being used for a specific test. Change-Id: I1634049f01859ae0310174892a96e204bb670bc1
Diffstat (limited to 'example')
-rw-r--r--example/resources.conf4
-rw-r--r--example/scenarios/mfeature-gprs.conf4
2 files changed, 8 insertions, 0 deletions
diff --git a/example/resources.conf b/example/resources.conf
index 95cb8cf..3daf677 100644
--- a/example/resources.conf
+++ b/example/resources.conf
@@ -60,6 +60,7 @@ modem:
ki: '80A37E6FDEA931EAC92FFA5F671EFEAD'
auth_algo: 'xor'
ciphers: [a5_0, a5_1]
+ features: ['sms']
- label: sierra_2
path: '/sierra_2'
@@ -67,6 +68,7 @@ modem:
ki: '00969E283349D354A8239E877F2E0866'
auth_algo: 'xor'
ciphers: [a5_0, a5_1]
+ features: ['sms']
- label: gobi_0
path: '/gobi_0'
@@ -74,6 +76,7 @@ modem:
ki: 'BB70807226393CDBAC8DD3439FF54252'
auth_algo: 'xor'
ciphers: [a5_0, a5_1]
+ features: ['sms']
- label: gobi_3
path: '/gobi_3'
@@ -81,3 +84,4 @@ modem:
ki: '2F70DCA43C45ACB97E947FDD0C7CA30A'
auth_algo: 'xor'
ciphers: [a5_0, a5_1]
+ features: ['gprs']
diff --git a/example/scenarios/mfeature-gprs.conf b/example/scenarios/mfeature-gprs.conf
new file mode 100644
index 0000000..c520a90
--- /dev/null
+++ b/example/scenarios/mfeature-gprs.conf
@@ -0,0 +1,4 @@
+resources:
+ modem:
+ - features:
+ - 'gprs'