blob: 2b1ffcdf832e0254d453f8483fe750b142092d07 [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 Ansarid88692c2022-02-01 22:47:43 +000011 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