blob: ea20a9bb944fbbea171c7659dd6245eee9c042b0 [file] [log] [blame]
"""
SPDX-FileCopyrightText: 2022-present Intel Corporation
SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
SPDX-License-Identifier: Apache-2.0
"""
import logging as log
from datetime import datetime
class Device(object):
def __init__(self, imsi_id, imsi, last_reachable=datetime.min, ip=None):
# log.debug("creating device, imsi_id={}, imsi={}, ip={}".format(imsi_id, imsi, ip))
self.imsi_id = imsi_id
self.imsi = imsi
self.ip = ip
self.reachable = False
self.last_reachable = last_reachable
def __str__(self):
return("imsi_id={}, imsi={}, ip={}".format(self.imsi_id, self.imsi, self.ip))