blob: 11600ff07bf0c36895eb75b6c8fd495afac847c7 [file] [log] [blame]
Holger Hans Peter Freyther10501cc2019-02-25 03:20:16 +00001# osmo_gsm_tester: OsmocomBB based Mobile Station (MS)
2#
3# Copyright (C) 2016-2019 by sysmocom - s.f.m.c. GmbH
4#
5# Author: Neels Hofmeyr <neels@hofmeyr.de>
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20from . import ms
21
22
23class MSOsmoMobile(ms.MS):
24 """Represent a osmocom-bb mobile."""
25
Pau Espin Pedrol83a2fdc2020-10-15 16:33:47 +020026 def __init__(self, testenv, conf):
27 super().__init__('ms_osmo', testenv, conf)
28
Holger Hans Peter Freyther10501cc2019-02-25 03:20:16 +000029 def cleanup(self):
30 # do nothing for a virtual resource
31 pass
Holger Hans Peter Freyther5e67ed42019-02-25 09:48:50 +000032
33 def ki(self):
34 ki = super().ki()
35 if not ki:
36 return "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
37 return ki
Pau Espin Pedrol14bb5ff2020-06-17 12:26:37 +020038
39 def get_assigned_addr(self, ipv6=False):
40 raise log.Error('API not implemented!')
41
42 def is_registered(self, mcc_mnc=None):
43 raise log.Error('API not implemented!')