mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Renamed Cable endpoints to terminations
This commit is contained in:
@ -284,7 +284,7 @@ CONNECTION_STATUS_CHOICES = [
|
||||
]
|
||||
|
||||
# Cable endpoint types
|
||||
CABLE_ENDPOINT_TYPES = [
|
||||
CABLE_TERMINATION_TYPES = [
|
||||
'consoleport', 'consoleserverport', 'interface', 'poweroutlet', 'powerport', 'frontpanelport', 'rearpanelport',
|
||||
]
|
||||
|
||||
@ -297,7 +297,7 @@ CABLE_TYPE_CHOICES = (
|
||||
(CABLE_TYPE_FIBER, 'Fiber'),
|
||||
)
|
||||
|
||||
CABLE_ENDPOINT_TYPE_CHOICES = {
|
||||
CABLE_TERMINATION_TYPE_CHOICES = {
|
||||
# (API endpoint, human-friendly name)
|
||||
'consoleport': ('console-ports', 'Console port'),
|
||||
'consoleserverport': ('console-server-ports', 'Console server port'),
|
||||
@ -308,7 +308,7 @@ CABLE_ENDPOINT_TYPE_CHOICES = {
|
||||
'rearpanelport': ('rear-panel-ports', 'Rear panel port'),
|
||||
}
|
||||
|
||||
COMPATIBLE_ENDPOINT_TYPES = {
|
||||
COMPATIBLE_TERMINATION_TYPES = {
|
||||
'consoleport': ['consoleserverport', 'frontpanelport', 'rearpanelport'],
|
||||
'consoleserverport': ['consoleport', 'frontpanelport', 'rearpanelport'],
|
||||
'powerport': ['poweroutlet'],
|
||||
|
Reference in New Issue
Block a user