Skip to content

Commit

Permalink
Reverted back device file
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeepnh5 committed Jan 7, 2025
1 parent 0aaf832 commit 2121dd5
Showing 1 changed file with 10 additions and 82 deletions.
92 changes: 10 additions & 82 deletions switchmap/server/db/ingest/update/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,122 +113,50 @@ class Status:
"""Tracks the status of various Topology methods."""

def __init__(self):
"""Instantiate the class.
Args:
None
Returns:
None
"""
"""Instantiate the class."""
self._vlan = False
self._vlanport = False
self._macport = False
self._l1interface = False

@property
def l1interface(self):
"""Provide the value of the 'l1interface' property.
Args:
None
Returns:
bool: True if the L1Interface table has been updated, False otherwise
"""
"""Provide the value of the 'l1interface' property."""
return self._l1interface

@l1interface.setter
def l1interface(self, value):
"""Set the 'l1interface' property.
Args:
value: Boolean indicating if the L1Interface table has been updated
Returns:
None
"""
"""Set the 'l1interface' property."""
self._l1interface = value

@property
def macport(self):
"""Provide the value of the 'macport' property.
Args:
None
Returns:
bool: True if the MacPort table has been updated, False otherwise
"""
"""Provide the value of the 'macport' property."""
return self._macport

@macport.setter
def macport(self, value):
"""Set the 'macport' property.
Args:
value: Boolean indicating if the MacPort table has been updated
Returns:
None
"""
"""Set the 'macport' property."""
self._macport = value

@property
def vlanport(self):
"""Provide the value of the 'vlanport' property.
Args:
None
Returns:
bool: True if the VlanPort table has been updated, False otherwise
"""
"""Provide the value of the 'vlanport' property."""
return self._vlanport

@vlanport.setter
def vlanport(self, value):
"""Set the 'vlanport' property.
Args:
value: Boolean indicating if the VlanPort table has been updated
Returns:
None
"""
"""Set the 'vlanport' property."""
self._vlanport = value

@property
def vlan(self):
"""Provide the value of the 'vlan' property.
Args:
None
Returns:
bool: True if the Vlan table has been updated, False otherwise
"""
"""Provide the value of the 'vlan' property."""
return self._vlan

@vlan.setter
def vlan(self, value):
"""Set the 'vlan' property.
Args:
value: Boolean indicating if the Vlan table has been updated
Returns:
None
"""
"""Set the 'vlan' property."""
self._vlan = value


Expand Down Expand Up @@ -642,4 +570,4 @@ def _ifspeed(interface):
if bool(result) is False:
result = interface.get("ifSpeed")
result = result / 1000000 if bool(result) else 0
return result
return result

0 comments on commit 2121dd5

Please sign in to comment.