Holger Hans Peter Freyther | 10501cc | 2019-02-25 03:20:16 +0000 | [diff] [blame] | 1 | # 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 | |
| 20 | from . import ms |
| 21 | |
| 22 | |
| 23 | class MSOsmoMobile(ms.MS): |
| 24 | """Represent a osmocom-bb mobile.""" |
| 25 | |
Pau Espin Pedrol | 83a2fdc | 2020-10-15 16:33:47 +0200 | [diff] [blame] | 26 | def __init__(self, testenv, conf): |
| 27 | super().__init__('ms_osmo', testenv, conf) |
| 28 | |
Holger Hans Peter Freyther | 10501cc | 2019-02-25 03:20:16 +0000 | [diff] [blame] | 29 | def cleanup(self): |
| 30 | # do nothing for a virtual resource |
| 31 | pass |
Holger Hans Peter Freyther | 5e67ed4 | 2019-02-25 09:48:50 +0000 | [diff] [blame] | 32 | |
| 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 Pedrol | 14bb5ff | 2020-06-17 12:26:37 +0200 | [diff] [blame] | 38 | |
| 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!') |