blob: 963d5ce9913782ab61971430665d79acbb636302 [file] [log] [blame]
Shad Ansarid88692c2022-02-01 22:47:43 +00001"""
2SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
3SPDX-License-Identifier: LicenseRef-ONF-Member-1.01
4"""
5
6import logging as log
7from datetime import datetime
8
9
10class Device(object):
Shad Ansariae3903e2022-02-05 01:03:01 +000011 def __init__(self, imsi_id, imsi, last_reachable=datetime.min, ip=None):
Shad Ansarid88692c2022-02-01 22:47:43 +000012 # 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
Shad Ansariae3903e2022-02-05 01:03:01 +000017 self.last_reachable = last_reachable