|
@@ -210,7 +210,7 @@ class PathEndpoint(models.Model):
|
|
|
# Console ports
|
|
# Console ports
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class ConsolePort(ComponentModel, CableTermination, PathEndpoint):
|
|
class ConsolePort(ComponentModel, CableTermination, PathEndpoint):
|
|
|
"""
|
|
"""
|
|
|
A physical console port within a Device. ConsolePorts connect to ConsoleServerPorts.
|
|
A physical console port within a Device. ConsolePorts connect to ConsoleServerPorts.
|
|
@@ -254,7 +254,7 @@ class ConsolePort(ComponentModel, CableTermination, PathEndpoint):
|
|
|
# Console server ports
|
|
# Console server ports
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class ConsoleServerPort(ComponentModel, CableTermination, PathEndpoint):
|
|
class ConsoleServerPort(ComponentModel, CableTermination, PathEndpoint):
|
|
|
"""
|
|
"""
|
|
|
A physical port within a Device (typically a designated console server) which provides access to ConsolePorts.
|
|
A physical port within a Device (typically a designated console server) which provides access to ConsolePorts.
|
|
@@ -298,7 +298,7 @@ class ConsoleServerPort(ComponentModel, CableTermination, PathEndpoint):
|
|
|
# Power ports
|
|
# Power ports
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class PowerPort(ComponentModel, CableTermination, PathEndpoint):
|
|
class PowerPort(ComponentModel, CableTermination, PathEndpoint):
|
|
|
"""
|
|
"""
|
|
|
A physical power supply (intake) port within a Device. PowerPorts connect to PowerOutlets.
|
|
A physical power supply (intake) port within a Device. PowerPorts connect to PowerOutlets.
|
|
@@ -410,7 +410,7 @@ class PowerPort(ComponentModel, CableTermination, PathEndpoint):
|
|
|
# Power outlets
|
|
# Power outlets
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class PowerOutlet(ComponentModel, CableTermination, PathEndpoint):
|
|
class PowerOutlet(ComponentModel, CableTermination, PathEndpoint):
|
|
|
"""
|
|
"""
|
|
|
A physical power outlet (output) within a Device which provides power to a PowerPort.
|
|
A physical power outlet (output) within a Device which provides power to a PowerPort.
|
|
@@ -511,7 +511,7 @@ class BaseInterface(models.Model):
|
|
|
return super().save(*args, **kwargs)
|
|
return super().save(*args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class Interface(ComponentModel, BaseInterface, CableTermination, PathEndpoint):
|
|
class Interface(ComponentModel, BaseInterface, CableTermination, PathEndpoint):
|
|
|
"""
|
|
"""
|
|
|
A network interface within a Device. A physical Interface can connect to exactly one other Interface.
|
|
A network interface within a Device. A physical Interface can connect to exactly one other Interface.
|
|
@@ -684,7 +684,7 @@ class Interface(ComponentModel, BaseInterface, CableTermination, PathEndpoint):
|
|
|
# Pass-through ports
|
|
# Pass-through ports
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class FrontPort(ComponentModel, CableTermination):
|
|
class FrontPort(ComponentModel, CableTermination):
|
|
|
"""
|
|
"""
|
|
|
A pass-through port on the front of a Device.
|
|
A pass-through port on the front of a Device.
|
|
@@ -750,7 +750,7 @@ class FrontPort(ComponentModel, CableTermination):
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class RearPort(ComponentModel, CableTermination):
|
|
class RearPort(ComponentModel, CableTermination):
|
|
|
"""
|
|
"""
|
|
|
A pass-through port on the rear of a Device.
|
|
A pass-through port on the rear of a Device.
|
|
@@ -804,7 +804,7 @@ class RearPort(ComponentModel, CableTermination):
|
|
|
# Device bays
|
|
# Device bays
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class DeviceBay(ComponentModel):
|
|
class DeviceBay(ComponentModel):
|
|
|
"""
|
|
"""
|
|
|
An empty space within a Device which can house a child device
|
|
An empty space within a Device which can house a child device
|
|
@@ -864,7 +864,7 @@ class DeviceBay(ComponentModel):
|
|
|
# Inventory items
|
|
# Inventory items
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-@extras_features('custom_fields', 'export_templates', 'webhooks')
|
|
|
|
|
|
|
+@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
|
|
class InventoryItem(MPTTModel, ComponentModel):
|
|
class InventoryItem(MPTTModel, ComponentModel):
|
|
|
"""
|
|
"""
|
|
|
An InventoryItem represents a serialized piece of hardware within a Device, such as a line card or power supply.
|
|
An InventoryItem represents a serialized piece of hardware within a Device, such as a line card or power supply.
|