blob: 60db1aab76cffeb6660e4eab27047a59c54d000d [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
Shad Ansari0508ddf2022-03-24 03:16:51 +000018
19 def __str__(self):
20 return("imsi_id={}, imsi={}, ip={}".format(self.imsi_id, self.imsi, self.ip))