mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-21 21:02:23 -06:00
CircuitTermination and PowerFeed are path endpoints
This commit is contained in:
@@ -12,6 +12,7 @@ ENDPOINT_MODELS = (
|
||||
'dcim.ConsolePort',
|
||||
'dcim.ConsoleServerPort',
|
||||
'dcim.Interface',
|
||||
'dcim.PowerFeed',
|
||||
'dcim.PowerOutlet',
|
||||
'dcim.PowerPort',
|
||||
)
|
||||
|
||||
@@ -10,7 +10,7 @@ from extras.models import ChangeLoggedModel, CustomFieldModel, TaggedItem
|
||||
from extras.utils import extras_features
|
||||
from utilities.querysets import RestrictedQuerySet
|
||||
from utilities.validators import ExclusionValidator
|
||||
from .device_components import CableTermination
|
||||
from .device_components import CableTermination, PathEndpoint
|
||||
|
||||
__all__ = (
|
||||
'PowerFeed',
|
||||
@@ -73,7 +73,7 @@ class PowerPanel(ChangeLoggedModel, CustomFieldModel):
|
||||
|
||||
|
||||
@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')
|
||||
class PowerFeed(ChangeLoggedModel, CableTermination, CustomFieldModel):
|
||||
class PowerFeed(ChangeLoggedModel, PathEndpoint, CableTermination, CustomFieldModel):
|
||||
"""
|
||||
An electrical circuit delivered from a PowerPanel.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user