Commit Graph

13321 Commits

Author SHA1 Message Date
Arthur Hanson
34f9899d06 Merge branch '7699-cluster-location' into 10711-wirelesslan-scope 2024-11-04 07:48:37 -08:00
Jeremy Stretch
45f29de89f Merge branch 'feature' into 7699-cluster-location 2024-10-31 11:13:09 -04:00
Arthur Hanson
a8eb455f3e
9604 Add Termination to CircuitTermination (#17821)
* 9604 add scope type to CircuitTermination

* 9604 add scope type to CircuitTermination

* 9604 add scope type to CircuitTermination

* 9604 model_forms

* 9604 form filtersets

* 9604 form bulk_import

* 9604 form bulk_edit

* 9604 serializers

* 9604 graphql

* 9604 tests and detail template

* 9604 fix migration merge

* 9604 fix tests

* 9604 fix tests

* 9604 fix table

* 9604 updates

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* 9604 remove provider_network

* 9604 fix tests

* 9604 fix tests

* 9604 fix forms

* 9604 review changes

* 9604 scope->termination

* 9604 fix _circuit_terminations

* 9604 fix _circuit_terminations

* 9604 sitegroup -> site_group

* 9604 update docs

* 9604 fix form termination side reference

* Misc cleanup

* Fix terminations in circuits table

* Fix missing imports

* Clean up termination attrs display

* Add termination & type to CircuitTerminationTable

* Update cable tracing logic

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-31 09:55:08 -04:00
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
Arthur Hanson
e1e6bfd757 7699 update docstring 2024-10-30 12:14:06 -07:00
Arthur Hanson
88aa554477 7699 _sitegroup -> _site_group 2024-10-30 12:07:13 -07:00
Arthur Hanson
5c022f0ae2 7699 refactor mixins 2024-10-30 11:53:51 -07:00
Arthur Hanson
0c7710ddb6 7699 review changes 2024-10-30 11:29:32 -07:00
Arthur Hanson
7fc0e4f2dd Merge branch 'feature' into 7699-cluster-location 2024-10-30 11:21:02 -07:00
Jeremy Stretch
19c5c32965 Merge branch 'develop' into feature 2024-10-30 13:10:47 -04:00
Jeremy Stretch
1e5f79a8ed Fixes #17884: Fix translation support for certain tab headings 2024-10-30 08:48:37 -04:00
Jeremy Stretch
f00a93c066 Fixes #17700: Fix warning when no scripts are found within a script module 2024-10-30 08:47:46 -04:00
Arthur Hanson
5f94dff815 17885 fix script running by providing script name to job 2024-10-29 16:47:15 -04:00
Brian Tiemann
572aad0e20 Update adding-models.md to reflect changes to get_absolute_url 2024-10-29 09:15:24 -04:00
github-actions
576498955f Update source translation strings 2024-10-29 05:02:05 +00:00
Arthur Hanson
69af847dd5 Merge branch 'feature' into 7699-cluster-location 2024-10-28 14:35:32 -07:00
Arthur Hanson
70758da0cf Merge branch 'feature' into 10711-wirelesslan-scope 2024-10-28 14:30:17 -07:00
Arthur Hanson
99904c1518 Merge branch 'develop' into feature 2024-10-28 14:29:48 -07:00
Jeremy Stretch
58d9057ccd
Merge pull request #17876 from netbox-community/develop
Release v4.1.5
2024-10-28 17:20:29 -04:00
Arthur Hanson
8bafef654a 10711 Add Scope to WirelessLAN 2024-10-28 14:12:34 -07:00
Jeremy Stretch
813347121e Release v4.1.5 2024-10-28 16:59:44 -04:00
Arthur Hanson
c91c9e5fe0 10711 Add Scope to WirelessLAN 2024-10-28 13:55:56 -07:00
transifex-integration[bot]
c383086aac
Updates for project NetBox (#17875)
* Translate django.po in cs

100% translated source file: 'django.po'
on 'cs'.

* Translate django.po in de

100% translated source file: 'django.po'
on 'de'.

* Translate django.po in es

100% translated source file: 'django.po'
on 'es'.

* Translate django.po in it

100% translated source file: 'django.po'
on 'it'.

* Translate django.po in tr

100% translated source file: 'django.po'
on 'tr'.

* Translate django.po in fr

100% translated source file: 'django.po'
on 'fr'.

* Translate django.po in ja

100% translated source file: 'django.po'
on 'ja'.

* Translate django.po in pt

100% translated source file: 'django.po'
on 'pt'.

* Translate django.po in da

100% translated source file: 'django.po'
on 'da'.

* Translate django.po in nl

100% translated source file: 'django.po'
on 'nl'.

* Translate django.po in zh

100% translated source file: 'django.po'
on 'zh'.

* Translate django.po in ru

100% translated source file: 'django.po'
on 'ru'.

* Translate django.po in uk

100% translated source file: 'django.po'
on 'uk'.

* Translate django.po in pl

100% translated source file: 'django.po'
on 'pl'.

---------

Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-10-28 16:50:34 -04:00
Jeremy Stretch
dba6e532c4 Pin django-rq to <3.0 2024-10-28 16:18:11 -04:00
Jeremy Stretch
f0eb8b9c64 Pin rq to LESS THAN v2.0 2024-10-28 16:13:34 -04:00
Jeremy Stretch
f56843333d Pin rq to <2.0 2024-10-28 16:07:50 -04:00
Jeremy Stretch
8279eaff5b Update source translation strings 2024-10-28 15:22:19 -04:00
bctiemann
ca210168df
Fixes: #17358 - Ensure correct comparison of overlapping IPRanges (#17391)
* Add new INET lookups for net_host_lt/gt/lte/gte comparisons irrespective of subnet inclusion

* Refactor Lookup subclasses to be more DRY

* Move comparison_sql to class attribute

* Add HostAsInet(Transform) to perform cast

* Remove unnecessary Lookup comparison classes

* Chain Host and Inet instead of making a new transform
2024-10-28 15:07:59 -04:00
Arthur Hanson
476194f0aa
17460 make ModuleType / DeviceType bulk buttons consistent (#17463)
* 17460 make ModuleType / DeviceType bulk buttons consistent

* 17460 refactor moduletype/devicetype to use standardized object_children

* 17460 refactor moduletype/devicetype to use standardized object_children

* 17460 refactor moduletype/devicetype to use standardized object_children
2024-10-28 15:04:45 -04:00
Arthur Hanson
d41cc97524 10711 Add Scope to WirelessLAN 2024-10-28 11:58:16 -07:00
Arthur Hanson
06c8a92423 10711 Add Scope to WirelessLAN 2024-10-28 11:43:30 -07:00
Arthur Hanson
4d01069f25 10711 Add Scope to WirelessLAN 2024-10-28 10:45:13 -07:00
Alexander Haase
69e1394fef Fix job field validation
Previously, fields in the Job model were not validated when the job was
created. Now 'full_clean()' is called before saving the job to ensure
valid data.
2024-10-28 13:40:20 -04:00
Arthur Hanson
effe9204af 7699 review changes 2024-10-28 09:08:17 -07:00
Arthur Hanson
c5005455f8 7699 move CachedScopeMixin 2024-10-28 08:45:03 -07:00
Arthur Hanson
c75bfe147d 7699 move ScopedFilterset 2024-10-28 07:55:43 -07:00
Arthur Hanson
62358f6ead 7699 review changes 2024-10-25 15:41:46 -07:00
Jeremy Stretch
ac12eae0b7 Fix issue templates 2024-10-24 16:41:14 -04:00
Arthur Hanson
277b175f9f 7699 scoped form, fitlerset 2024-10-24 12:53:52 -07:00
Arthur Hanson
8ca7cdd0ad 7699 scope form 2024-10-24 12:48:04 -07:00
Arthur Hanson
d7b204a83f 7699 scope form 2024-10-24 11:42:25 -07:00
Arthur Hanson
3525a3a02e 7699 change mixin name 2024-10-24 11:32:24 -07:00
Arthur Hanson
cfdab0e87f 7699 use mixin for model 2024-10-24 11:19:47 -07:00
Arthur Hanson
c73902c088 7699 fix tests 2024-10-24 09:38:04 -07:00
Arthur Hanson
9108915604 7699 fix ipam tests 2024-10-24 09:23:18 -07:00
Arthur Hanson
65295f6d79 7699 fix dcim tests 2024-10-24 08:58:07 -07:00
Arthur Hanson
4112af534d 7699 fix graphql tests for clusters reference 2024-10-24 08:39:12 -07:00
Arthur Hanson
071b960952 7699 fix tests 2024-10-24 07:33:31 -07:00
Arthur Hanson
ee990560c1 7699 fixes 2024-10-24 07:27:57 -07:00
xee8ai
ce67d2c13b Fix ambiguous shebang in netbox/manage.py. 2024-10-24 09:04:49 -04:00