blob: cc541740ffa154fe7453dfb5143d5344d288c7e4 [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
26 def cleanup(self):
27 # do nothing for a virtual resource
28 pass
Holger Hans Peter Freyther5e67ed42019-02-25 09:48:50 +000029
30 def ki(self):
31 ki = super().ki()
32 if not ki:
33 return "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
34 return ki
Pau Espin Pedrol14bb5ff2020-06-17 12:26:37 +020035
36 def get_assigned_addr(self, ipv6=False):
37 raise log.Error('API not implemented!')
38
39 def is_registered(self, mcc_mnc=None):
40 raise log.Error('API not implemented!')