mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 04:16:24 -06:00
Add termination & type to CircuitTerminationTable
This commit is contained in:
parent
eeb9c6b1b2
commit
de8ff95f0d
@ -108,6 +108,18 @@ class CircuitTerminationTable(NetBoxTable):
|
|||||||
linkify=True,
|
linkify=True,
|
||||||
accessor='circuit.provider'
|
accessor='circuit.provider'
|
||||||
)
|
)
|
||||||
|
term_side = tables.Column(
|
||||||
|
verbose_name=_('Side')
|
||||||
|
)
|
||||||
|
termination_type = columns.ContentTypeColumn(
|
||||||
|
verbose_name=_('Termination Type'),
|
||||||
|
)
|
||||||
|
termination = tables.Column(
|
||||||
|
verbose_name=_('Termination Point'),
|
||||||
|
linkify=True
|
||||||
|
)
|
||||||
|
|
||||||
|
# Termination types
|
||||||
site = tables.Column(
|
site = tables.Column(
|
||||||
verbose_name=_('Site'),
|
verbose_name=_('Site'),
|
||||||
linkify=True,
|
linkify=True,
|
||||||
@ -137,11 +149,13 @@ class CircuitTerminationTable(NetBoxTable):
|
|||||||
class Meta(NetBoxTable.Meta):
|
class Meta(NetBoxTable.Meta):
|
||||||
model = CircuitTermination
|
model = CircuitTermination
|
||||||
fields = (
|
fields = (
|
||||||
'pk', 'id', 'circuit', 'provider', 'term_side', '_site', 'site_group', 'region', 'location',
|
'pk', 'id', 'circuit', 'provider', 'term_side', 'termination_type', 'termination', 'site_group', 'region',
|
||||||
'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id', 'pp_info', 'description',
|
'site', 'location', 'provider_network', 'port_speed', 'upstream_speed', 'xconnect_id', 'pp_info',
|
||||||
'created', 'last_updated', 'actions',
|
'description', 'created', 'last_updated', 'actions',
|
||||||
|
)
|
||||||
|
default_columns = (
|
||||||
|
'pk', 'id', 'circuit', 'provider', 'term_side', 'termination_type', 'termination', 'description',
|
||||||
)
|
)
|
||||||
default_columns = ('pk', 'id', 'circuit', 'provider', 'term_side', 'description')
|
|
||||||
|
|
||||||
|
|
||||||
class CircuitGroupTable(NetBoxTable):
|
class CircuitGroupTable(NetBoxTable):
|
||||||
|
Loading…
Reference in New Issue
Block a user