Commit Graph

13301 Commits

Author SHA1 Message Date
Brian Tiemann
39e30e5e15 Revert changes to adding-models.md (moved to another PR) 2024-10-28 15:57:13 -04:00
Brian Tiemann
94d7015c5e Add policy (name) filter to VLANTranslationRuleFilterSet 2024-10-28 15:45:08 -04:00
Brian Tiemann
04fb92fa98 Define vlan_translation_table conditionally 2024-10-28 15:37:54 -04:00
Brian Tiemann
722c7ba6af Add description field to VLANTranslationRule 2024-10-28 15:31:36 -04:00
Brian Tiemann
d9dde5c4f4 Conditionally include vlan_translation_table in interface.html and vminterface.html 2024-10-28 15:11:16 -04:00
Brian Tiemann
79fbf64f86 Remove redundant InterfaceVLANTranslationTable 2024-10-28 15:04:55 -04:00
Brian Tiemann
e0f5fd048b Move vlan_translation_policy into 802.1Q Switching fieldset 2024-10-28 14:28:01 -04:00
Brian Tiemann
3a50d9f024 Rework policy/rule documentation 2024-10-28 14:20:14 -04:00
Brian Tiemann
d3cb4c92e4 Add note about select_related in graphql 2024-10-23 10:16:09 -04:00
Brian Tiemann
5e8654e0bf Documentation of new and affected models 2024-10-22 19:08:23 -04:00
Brian Tiemann
ae93ce848b Explicitly prefetch policy in graphql 2024-10-22 18:42:33 -04:00
Brian Tiemann
24caa3bf1f Revert nullability 2024-10-22 11:54:39 -04:00
Brian Tiemann
b90829197e Revert "Make VLANTranslationRule.policy nullable (but still required)"
This reverts commit 4c1bb437ef.
2024-10-22 11:46:36 -04:00
Brian Tiemann
4c1bb437ef Make VLANTranslationRule.policy nullable (but still required) 2024-10-22 08:36:20 -04:00
Brian Tiemann
25c8aca1fb Complete viewset tests for VLANTranslationRule 2024-10-21 22:41:21 -04:00
Brian Tiemann
0d5961bf6e Add tags to VLANTranslationRuleForm 2024-10-21 22:01:21 -04:00
Brian Tiemann
eece55b212 API and viewset tests (incomplete) 2024-10-21 21:54:17 -04:00
Brian Tiemann
0985ef43d3 View tests 2024-10-21 19:40:31 -04:00
Brian Tiemann
b75f142ce4 Filterset tests 2024-10-21 19:24:39 -04:00
Brian Tiemann
9da0191b09 Add graphql types/filters/schema for VLANTranslationRule 2024-10-21 16:16:19 -04:00
Brian Tiemann
a94fe018ac Ensure 'id' column is present by default 2024-10-21 16:06:59 -04:00
Brian Tiemann
5a92975eab Search methods and registration 2024-10-21 15:35:31 -04:00
Brian Tiemann
f30b54dae1 Rebuild migrations 2024-10-21 14:00:56 -04:00
Brian Tiemann
38fe3d319f Merge branch 'feature' into 7336-vlan-translation-feature 2024-10-21 13:58:07 -04:00
Brian Tiemann
375b5aaef9 Remove unnecessary ordering column 2024-10-21 13:53:46 -04:00
Jeremy Stretch
ef1fdf0a01 Closes #17761: Store empty CharField choices as null 2024-10-21 13:12:05 -04:00
Brian Tiemann
9a911f8317 Cleanup indentation 2024-10-20 19:05:24 -04:00
Brian Tiemann
0984e84bc5 Add vlan_translation_policy to fields in VMInterfaceSerializer 2024-10-20 19:01:26 -04:00
Brian Tiemann
a2942475b9 Protect in-use policies against deletion 2024-10-20 18:58:20 -04:00
Brian Tiemann
5da38ec5db Move vlan_translation_policy fields to model and filterset mixins 2024-10-20 18:54:23 -04:00
Brian Tiemann
3861e5b5ef Add vlan_translation_policy to VMInterfaceSerializer 2024-10-20 18:48:48 -04:00
Brian Tiemann
4b7ab753c1 Add vlan_translation_table to VMInterface detail page 2024-10-20 18:45:46 -04:00
Brian Tiemann
f396847d54 Make vlan_translation_policy fields on filtersets more consistent with existing __name convention 2024-10-20 18:14:12 -04:00
Brian Tiemann
c9eb6cb4bf Use DynamicModelChoiceField for policy field 2024-10-20 17:58:39 -04:00
Brian Tiemann
de48e2543c Rebuild migrations 2024-10-20 12:41:45 -04:00
Brian Tiemann
55a2034918 Merge branch 'feature' into 7336-vlan-translation-feature 2024-10-20 12:33:18 -04:00
Brian Tiemann
54ff4bb1cd Rebuild migration and add constraints and field options 2024-10-20 12:27:27 -04:00
Brian Tiemann
d5cae6fe93 Remove package-lock.json 2024-10-20 12:15:16 -04:00
Jeremy Stretch
75270c1aef
Closes #6414: Enable assigning prefixes to various object types (#17692)
* Replace site FK on Prefix with scope GFK

* Add denormalized relations

* Update prefix filters

* Add generic relations for Prefix

* Update GraphQL type for Prefix model

* Fix tests; misc cleanup

* Remove prefix_count from SiteSerializer

* Remove site field from PrefixBulkEditForm

* Restore scope filters for prefixes

* Fix scope population on PrefixForm init

* Show scope type

* Assign scope during bulk import of prefixes

* Correct handling of GenericForeignKey in PrefixForm

* Add prefix counts to all scoped objects

* Fix migration; linter fix

* Add limit_choices_to on scope_type

* Clean up cache_related_objects()

* Enable bulk editing prefix scope
2024-10-18 15:45:22 -04:00
Jeremy Stretch
c78da79ce6 Merge branch 'develop' into feature 2024-10-18 13:18:11 -04:00
Jeremy Stretch
538f3255a7 Closes #17789: Use a single scope field for VLANGroup bulk edit 2024-10-18 13:16:24 -04:00
Arthur Hanson
b9c6def8ab
15093 Allow plugins to register events pipeline (#17717)
* 15093 add events_pipeline registration to plugins

* 15093 use list

* 15093 add documentation

* Update docs/configuration/index.md

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* Update docs/configuration/miscellaneous.md

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* 15093 review changes

* 15093 review changes

* Formatting & readability

* 15093 review changes

* 15093 add test

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-18 12:47:16 -04:00
Arthur Hanson
a2cd4d0983
17635 fix script AbortTransaction (#17764)
* 17635 fix script AbortTransaction

* 17635 review changes
2024-10-18 10:55:17 -04:00
Arthur Hanson
e13bc0694d
17374 correct background color in dark mode for active list item (#17792)
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-18 10:48:15 -04:00
bctiemann
d8c5147e02
Fixes: #17732 - Add a background-color to img elements in docs to ensure readability in dark mode (#17790)
* Add a background-color to img elements in docs to ensure readability in dark mode

* Limit style changes to those within CMS content blocks; update colors of main netbox_logo.svg

* Add a white stroke to the main logo

* Add light & dark mode versions of the NetBox logo

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-18 10:47:05 -04:00
Alexander Haase
ac9f561372 Fix social auth for Entra ID
Previously Azure AD was renamed to Entra ID. However, as django social
auth didn't change its API, just the display names must be changed but
not the API names.
2024-10-18 10:45:34 -04:00
atownson
5ddbacaa1f
Fixes #17802 - Added opaque background to Rename buttons (#17805)
* Added btn-float class to the Rename button

* Added btn-float class to the Rename button
2024-10-18 09:49:17 -04:00
Ian Bishop
e6f41f73f7
Add instructions for authenticating using Google oauth2 (#17527)
* Add instructions for authenticating using Google oauth2

Signed-off-by: Ian Bishop <151477169+ianb-mp@users.noreply.github.com>

* Add navigation link

* Misc cleanup

---------

Signed-off-by: Ian Bishop <151477169+ianb-mp@users.noreply.github.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-18 09:36:29 -04:00
Jeremy Stretch
a8ec06687a Reomove obsolete nested serializers 2024-10-18 08:16:30 -04:00
Jeremy Stretch
6aeb553391 Closes #17029: Deprecate PluginTemplateExtension.model 2024-10-18 08:15:31 -04:00