Jeremy Stretch
44f8a777df
Merge branch 'develop' into feature
2023-08-15 11:04:03 -04:00
Abhimanyu Saharan
be3f48c677
Fixed spelling for Attributes #13460
2023-08-14 13:29:11 +05:30
Arthur Hanson
9fd07b594c
11578 mark swagger available- apis to accept lists in post ( #13445 )
...
* 11578 change swagger for available-ips to accept lists
* 11578 change swagger for available-xxx to accept lists
2023-08-11 09:49:03 -04:00
Jeremy Stretch
914588f55d
Merge branch 'develop' into feature
2023-08-09 15:31:21 -04:00
Abhimanyu Saharan
545769ad88
Adds generic object children template ( #13388 )
...
* adds generic tab view template #12110
* Rename view_tab.html and move to generic/
* Fix console ports template
* Move bulk operations view resolution to template
* Avoid setting default template_name on ObjectChildrenView
* Move base_template and table_config context vars to base context
* removed bulk_delete_control from templates
* refactored bulk_controls view
* fixed table_config
* renamed object_tab.html to objectchildren_list.html
* removed unused import
* Refactor template blocks for bulk operation buttons
* Rename object children generic template
* Move disconnect bulk action into a separate template for device components
* Fix cluster devices & VM interfaces views
* minor button label change
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-09 14:16:03 -04:00
Jeremy Stretch
0dd319d0c8
Closes #11675 : Add support for specifying import/export route targets during VRF bulk import
2023-08-04 15:25:06 -04:00
Jeremy Stretch
2afce6c94b
Introduce ContactsMixin
2023-08-04 10:15:50 -04:00
Jeremy Stretch
caedc8dbe3
Closes #13352 : Translation support for model verbose names ( #13354 )
...
* Update verbose_name & verbose_name_plural Meta attributes on all models
* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
Abhimanyu Saharan
57860f26b7
Adds assigned bool for IP address API ( #13301 )
...
* adds assigned bool for ip address API #13151
* Add filterset test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-02 15:45:09 -04:00
Jeremy Stretch
8f271151a7
Closes #11519 : Add a SQL index for IPAddress host value
2023-08-02 09:56:56 -04:00
Abhimanyu Saharan
0bb86f1e7d
Replaces device_role with role on device model ( #13342 )
...
* replaces device_role with role on device model #6391
* fixes lint issue #6391
* revert the database user
* revert test_runner comment
* changes as per review
* Update references to device_role column in UserConfigs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-02 09:55:52 -04:00
Arthur Hanson
e625a5667c
Closes #13279 : Wrap choice labels with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 17:31:07 -04:00
Arthur Hanson
e284cd7e54
Closes #13150 : Wrap table column headers with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 14:35:28 -04:00
Arthur Hanson
b7a9649269
Closes #13149 : Wrap form field labels with gettext_lazy()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 12:52:38 -04:00
Arthur Hanson
83bebc1bd2
Closes #13132 : Wrap verbose_name and other model text with gettext_lazy() (i18n)
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 11:28:07 -04:00
Jeremy Stretch
2a0d76d564
Merge branch 'develop' into feature
2023-07-30 13:36:51 -04:00
Jeremy Stretch
0b10131564
Satisfy PEP8 E721 linter complaints
2023-07-30 13:34:08 -04:00
Jamie (Bear) Murphy
154b8236a2
Oob ip (devices) ( #13013 )
...
* initial oob_ip support for devices
* add primary ip and oob ip checkmark to ip address view
* add oob ip to device view and device edit view
* pep8
* make is_oob_ip and is_primary_ip generic for other models
* refactor oob_ip
* fix oob ip signal
* string capitalisation
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-25 14:40:40 -04:00
Jeremy Stretch
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Jeremy Stretch
73348ee435
Fixes #13105 : Avoid exception when attempting to allocate next available IP address from prefix marked as utilized
2023-07-10 13:53:31 -04:00
Jeremy Stretch
7419a8e112
Closes #11738 : Annotate utilization on VLAN groups ( #13108 )
...
* Update serializers.py
* Update vlans.py
* Update vlans.py
* Update vlangroup.html
* Update vlans.py
* Update vlans.py
* Update serializers.py
* adds db annotation to calculate utilization
* optimize queries
* merge fix
* adds round function for utilization to limit decimal
* fixed object view annotation
* consolidated queryset for utilization
* lint fixes
* Renamed manager method to annotate_utilization() for consistency with other managers
---------
Co-authored-by: Abhimanyu Saharan <desk.abhimanyu@gmail.com >
2023-07-06 14:51:28 -04:00
Abhimanyu Saharan
62bdb90f61
Adds copy content button ( #12584 )
...
* adds copy content button #12499
* adds newline
* Omit hash mark from target string
* Clean up HTML element IDs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-06 14:19:55 -04:00
Abhimanyu Saharan
16ee42ac38
fixes prechange snapshot #12617
2023-07-06 09:39:09 -04:00
Jeremy Stretch
5f0922713f
Fixes #13047 : Add annotate_asn_count() to ASNRange manager
2023-07-06 08:45:02 -04:00
Abhimanyu Saharan
27e850a68d
fix ip address assignment #12953
2023-06-23 14:39:16 -04:00
Abhimanyu Saharan
7f96c7fee7
fixes most schema warnings #12257
2023-06-23 14:19:40 -04:00
Jeremy Stretch
bace24b68e
12180 available objects api ( #12935 )
...
* Introduce AvailableObjectsView and refactor 'available objects' API views
* Restore advisory PostgreSQL locks
* Move get_next_available_prefix()
* Apply OpenAPI decorators for get() and post()
2023-06-20 15:04:10 -04:00
Dillon Henschen
0e873a01b8
Closes #12622 : Fix assigning VLAN without site to Prefix ( #12784 )
...
* Issue #12622 : Fix creating Prefix using VLAN without site
* Issue #12622 : Fix importing Prefix using VLAN without site
This commit also adds tests to verify the import changes implemented
in this commit.
* Issue #12622 : Cleanup code to filter allowed VLANs on a prefix import
* Closes #12622 : Switch to VLAN selector dialog when creating Prefix
2023-06-14 13:49:00 -04:00
Jamie Murphy
22a0ce3f76
broadcast error fixes for ipv6 and /31/32
2023-06-12 21:01:43 +01:00
jeremystretch
b64b19a3f4
Fixes #11934 : Prevent reassignment of an IP address designated as primary for its parent object
2023-05-25 16:42:24 -04:00
Austin de Coup-Crank
005e3fd692
Closes #9068 : validate addresses assigned to interfaces ( #12618 )
...
* Begin logic
* Closes #9068 : Disallow assigning bcast/networks to interfaces
* Allow net IDs in /31, /32, /127, /128
* linting error
* Implement requested changes
* Condensed the "if" logic a bit
---------
Co-authored-by: Austin de Coup-Crank <decoupca@moodys.com >
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-22 16:16:17 -04:00
Abhimanyu Saharan
4eb5e90ccc
Adds contact tabs ( #12460 )
...
* adds contact tabs #11599
* fixed lint issues
* changes as per review
* changes as per review
* replaces generic object template with base template
2023-05-12 10:26:26 -04:00
Abhimanyu Saharan
6b19f15a7b
Moves related ips to a tab ( #12502 )
...
* moves related ips to a tab #12233
* Refactor IP address templates to use a base template
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-09 12:49:13 -04:00
Daniel Sheppard
7a38f601de
Fixes : #11715 - Fix Parent Prefix table display ( #12448 )
...
* Fixes : #11715 - Fix Parent Prefix table display of global vrf prefixes that are **not** containers.
* Combine AND into a single Q object
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-05 09:35:05 -04:00
Daniel Sheppard
46914d9479
Fixes : #10757 - Change IP interface assignment to use new selector ( #12452 )
...
* Fixes : #10757 - Change interface assignment to use new selector. Perform the same change to the NAT assignment as well.
* Remove nat_vrf from form and remove query_params that are not required anymore
2023-05-04 13:59:28 -04:00
Arthur Hanson
55385dd0db
12278 add ipaddressfield serializer for OpenAPI spectacular typing ( #12285 )
...
* #12278 add serializer for ipaddressfield to remove spectacular warnings
* #12278 add ipaddressfieldserializer to nested serializers
* #12278 fix to_internal_value to_representation in serializer
* #12278 to_internal_value is called before validation! need to raise validation error if incorrect format
* #12278 to_internal_value needs to return value doh
* #12278 move IPAddressField to field_serializers
* #12278 remove old import
* 12278 remove validator
2023-04-21 12:41:03 -04:00
Arthur
15d80f4e1b
12195 remove incorrect null=True on choice fields
2023-04-21 12:23:07 -04:00
Jeremy Stretch
d470848b29
Closes #12246 : General cleanup of utilities modules
...
* Clean up base modules
* Clean up forms modules
* Clean up templatetags modules
* Replace custom simplify_decimal filter with floatformat
* Misc cleanup
* Merge ReturnURLForm into ConfirmationForm
* Clean up import statements for utilities.forms
* Fix field class references in docs
2023-04-14 10:33:53 -04:00
jeremystretch
59a6b3e71b
Merge branch 'develop' into feature
2023-04-12 17:38:16 -04:00
pobradovic08
97ed6439ce
Fixes #12227 : L2VPN Bulk import not setting Tenant field
2023-04-12 09:24:31 -04:00
jeremystretch
08017c51f6
Merge branch 'develop' into feature
2023-04-07 13:00:00 -04:00
jeremystretch
085cfc58f4
Fixes #12184 : Fix filtered bulk deletion for various models
2023-04-07 10:25:36 -04:00
Jeremy Stretch
2bf9acfb19
Closes #12193 : Clean up tests ( #12197 )
...
* Fix skipped API tests
* Remove invalid tests
* Correct logger name
2023-04-06 16:35:27 -04:00
jeremystretch
b032742418
Closes #12133 : Move any instance mutations inside clean() to save()
2023-04-03 16:26:07 -04:00
Arthur Hanson
ecd0c56554
Closes #9608 : Move from drf-yasg to spectacular
...
Co-authored-by: arthanson <worldnomad@gmail.com >
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-03-30 14:32:59 -04:00
Arthur Hanson
c57d71a9db
11291 optimize GraphQL queries ( #11943 )
...
* 11291 initial optimize graphql queries
* 11291 add optimizer to schemas
* 11291 cleanup fields.py
* 11291 fix fragment query
2023-03-23 08:42:18 -04:00
jeremystretch
3b9fda0169
Merge branch 'develop' into feature
2023-03-20 08:54:22 -04:00
jeremystretch
0ddd7b0e45
Disable bulk update test for L2VPN terminations
2023-03-17 10:09:57 -04:00
Jeremy Stretch
206d578bc3
Closes #10242 : Redirect to filtered objects list after bulk import ( #12001 )
...
* Redirect user to filtered objects list after bulk import
* Remove obsolete table attribute from bulk import views
2023-03-17 09:23:40 -04:00
jeremystretch
3d14a79428
Fixes #11979 : Correct URL for tags in route targets list
2023-03-16 08:20:52 -04:00