mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Switch back to base model for Interface and remove custom_fields
This commit is contained in:
parent
9e086932d9
commit
98e3461503
@ -1121,7 +1121,7 @@ class PowerOutlet(models.Model):
|
||||
#
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Interface(CreatedUpdatedModel, CustomFieldModel):
|
||||
class Interface(models.Model):
|
||||
"""
|
||||
A physical data interface within a Device. An Interface can connect to exactly one other Interface via the creation
|
||||
of an InterfaceConnection.
|
||||
@ -1146,7 +1146,6 @@ class Interface(CreatedUpdatedModel, CustomFieldModel):
|
||||
help_text="This interface is used only for out-of-band management"
|
||||
)
|
||||
description = models.CharField(max_length=100, blank=True)
|
||||
custom_field_values = GenericRelation(CustomFieldValue, content_type_field='obj_type', object_id_field='obj_id')
|
||||
objects = InterfaceQuerySet.as_manager()
|
||||
|
||||
csv_headers = ['device','lag','name','mac_address','form_factor','enabled','description','mtu','mgmt_only','is_virtual','is_wireless','is_connected','is_lag']
|
||||
|
Loading…
Reference in New Issue
Block a user