1
0
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:
Jeremy Stretch
2018-10-24 14:38:44 -04:00
parent 9985f2cb82
commit 54c917beff
14 changed files with 100 additions and 100 deletions

View File

@ -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'],