netbox/docs/models/dcim
bctiemann 353214098b
4867 multiple mac addresses (#17902)
* Create MACAddress model and migrations to convert existing .mac_address fields to standalone objects

* Add migrations

* All views/filtering working and documentation done; no unit tests yet

* Redo migrations following VLAN Translation

* Remove mac_address filter fields and add table columns for device/vm

* Remove unnecessary "bulk rename"

* Fix filterset tests for Device

* Fix filterset tests for Interface

* Fix tests on single-object forms

* Fix serializer tests

* Fix filterset tests for VMInterface

* Fix filterset tests for Device and VirtualMachine

* Move new field check into lookup_map iteration

* Fix general MACAddress filter tests

* Add GraphQL types/filters/schema

* Fix bulk edit/create tests (bulk editing Interfaces will be unsupported because of inheritance from ComponentBulkEditForm)

* Make mac_address read_only on InterfaceSerializer/VMInterfaceSerializer

* Undo unrelated work

* Cleanup unused IPAddress derived stuff

* API endpoints

* Add serializer objects to interface serializers

* Clean up unnecessary bulk create forms/views/routes

* Add SearchIndex and adjust indexable fields for Interface and VMInterface

* Reorganize MACAddress classes out of association with DeviceComponents

* Move MACAddressSerializer

* Enforce saving only a single is_primary MACAddress per interface/vminterface

* Perform is_primary validation on MACAddress model and just check if one already exists for the interface

* Remove form-level validation

* Fix check for current is_primary setting when reassigning

* Model cleanup

* Documentation notes and cleanup

* Simplify serializer and add ip_addresses

* Add to VMInterfaceSerializer too

* Style cleanup

* Standardize "MAC Address" instead of "MAC"

* Remove unused views

* Add is_primary field for bulk edit

* HTML cleanup and add copy-to-clipboard button

* Remove mac_address from Interface and VMInterface bulk-edit forms

* Add device and VM filtering

* Use combined assigned_object_parent in table to match structure of IPAddressTable

* Add GFK fields to MACAddressSerializer

* Reorganize "Addressing" sections to remove from proximity to "Device Components" and related groupings

* Clean up migrations

* Misc cleanup

* Add filterset test

* Remove mac_address field from interface forms

* Designate primary MAC address via a ForeignKey on the interface models

* Add serializer fields for primary_mac_address

* Update docs

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-18 15:11:24 -05:00
..
cable.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
consoleport.md Update model docs for device components 2022-08-15 11:57:38 -04:00
consoleporttemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
consoleserverport.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
consoleserverporttemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
device.md Closes #15292: Remove obsolete device_role attribute from Device model 2024-03-01 11:31:47 -05:00
devicebay.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
devicebaytemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
devicerole.md Closes #11559: Implement config template rendering (#11769) 2023-02-19 20:09:52 -05:00
devicetype.md #9653: Cleanup 2023-03-20 16:00:08 -04:00
frontport.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
frontporttemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
interface.md 4867 multiple mac addresses (#17902) 2024-11-18 15:11:24 -05:00
interfacetemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
inventoryitem.md 16783 Add status field to InventoryItem (#17627) 2024-09-30 18:26:14 -04:00
inventoryitemrole.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
inventoryitemtemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
location.md Closes: #13918 - Add facility field (#15456) 2024-03-18 10:09:50 -04:00
macaddress.md 4867 multiple mac addresses (#17902) 2024-11-18 15:11:24 -05:00
manufacturer.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
module.md Closes #10371: Add operational status field for modules 2022-12-09 10:43:29 -05:00
modulebay.md #10500: Cleanup (#17305) 2024-08-29 15:38:53 -04:00
modulebaytemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
moduletype.md Documentation updates for v4.1 2024-07-31 16:26:21 -04:00
platform.md removes napalm references #13628 2023-08-31 09:54:35 -04:00
powerfeed.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
poweroutlet.md 17195 Add color to PowerOutlet (#17623) 2024-10-02 08:51:41 -04:00
poweroutlettemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
powerpanel.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
powerport.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
powerporttemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
rack.md 12826 Add Rack Type (#16739) 2024-07-16 08:58:22 -04:00
rackreservation.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
rackrole.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
racktype.md 11969 remove airflow from racktype (#17324) 2024-08-30 13:30:51 -04:00
rearport.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
rearporttemplate.md Update model docs for device components 2022-08-15 11:57:38 -04:00
region.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
site.md Closes #10820: Switch timezone library from pytz to zoneinfo 2022-11-02 15:54:41 -04:00
sitegroup.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
virtualchassis.md Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
virtualdevicecontext.md Changelog & documentation for #7854 2022-11-11 08:25:44 -05:00