Shad Ansari | d88692c | 2022-02-01 22:47:43 +0000 | [diff] [blame] | 1 | """ |
| 2 | SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 3 | SPDX-License-Identifier: LicenseRef-ONF-Member-1.01 |
| 4 | """ |
| 5 | |
| 6 | import logging as log |
| 7 | from datetime import datetime |
| 8 | |
| 9 | |
| 10 | class Device(object): |
Shad Ansari | d88692c | 2022-02-01 22:47:43 +0000 | [diff] [blame] | 11 | def __init__(self, imsi_id, imsi, ip=None): |
| 12 | # log.debug("creating device, imsi_id={}, imsi={}, ip={}".format(imsi_id, imsi, ip)) |
| 13 | self.imsi_id = imsi_id |
| 14 | self.imsi = imsi |
| 15 | self.ip = ip |
| 16 | self.reachable = False |
| 17 | self.last_reachable = datetime.min |