netbox/docs/models/dcim
bctiemann f74a9a1c76
Fixes: #7336 - VLAN Translation (#17745)
* VLANTranslationPolicy and VLANTranslationRule models and all associated UI classes

* Change VLANTranslationPolicy to a PrimaryModel and make name unique

* Add serializer classes to InterfaceSerializer

* Remake migrations

* Add GraphQL typing

* Skip tagged models in test

* Missing migration

* Remove get_absolute_url methods

* Remove package-lock.json

* Rebuild migration and add constraints and field options

* Rebuild migrations

* Use DynamicModelChoiceField for policy field

* Make vlan_translation_policy fields on filtersets more consistent with existing __name convention

* Add vlan_translation_table to VMInterface detail page

* Add vlan_translation_policy to VMInterfaceSerializer

* Move vlan_translation_policy fields to model and filterset mixins

* Protect in-use policies against deletion

* Add vlan_translation_policy to fields in VMInterfaceSerializer

* Cleanup indentation

* Remove unnecessary ordering column

* Rebuild migrations

* Search methods and registration

* Ensure 'id' column is present by default

* Add graphql types/filters/schema for VLANTranslationRule

* Filterset tests

* View tests

* API and viewset tests (incomplete)

* Add tags to VLANTranslationRuleForm

* Complete viewset tests for VLANTranslationRule

* Make VLANTranslationRule.policy nullable (but still required)

* Revert "Make VLANTranslationRule.policy nullable (but still required)"

This reverts commit 4c1bb437ef.

* Revert nullability

* Explicitly prefetch policy in graphql

* Documentation of new and affected models

* Add note about select_related in graphql

* Rework policy/rule documentation

* Move vlan_translation_policy into 802.1Q Switching fieldset

* Remove redundant InterfaceVLANTranslationTable

* Conditionally include vlan_translation_table in interface.html and vminterface.html

* Add description field to VLANTranslationRule

* Define vlan_translation_table conditionally

* Add policy (name) filter to VLANTranslationRuleFilterSet

* Revert changes to adding-models.md (moved to another PR)

* Dynamic table for linked rules in vlantranslationpolicy.html

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-30 17:09:46 -04: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 Fixes: #7336 - VLAN Translation (#17745) 2024-10-30 17:09:46 -04: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
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