312291b010
Merge branch 'develop' into feature
2024-05-01 16:09:14 -04:00
cbfed83f60
15524 round iprange utilization ( #15734 )
2024-04-29 13:19:57 -04:00
81ca455fef
Move array_to_range(), array_to_string(), deepmerge(), drange(), flatten_dict(), and shallow_compare_dict() to utilities.data
2024-03-22 08:59:52 -04:00
78bd7dec48
Merge branch 'develop' into feature
2024-03-15 12:32:54 -04:00
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
bdcf4c4154
Fixes #15220 : Move IP mask validation logic from form to model
2024-03-01 11:28:48 -05:00
4ba0ec78cf
fix: performance for get__available_ips for prefix ( #15041 )
2024-02-05 13:30:59 -05:00
23e201cec6
Fixes #14905 : Fix miscellaneous errors with string translations
2024-01-24 17:05:02 -05:00
d5c1cb0ef6
Merge branch 'develop' into feature
2023-12-28 14:20:04 -05:00
45c646dcec
Fixes #14482 - Fix validation error when primary IP is moved ( #14514 )
...
* Fix validation when primary IP is moved.
* Fix views test
* Work on excluding assigned_objects
* Modify clean() on model and form to properly catch error
* Fix test failure
* Fix test to check for PK
* Remove model_form check
2023-12-28 13:28:05 -05:00
1f2f0860fe
Merge branch 'develop' into feature
2023-12-27 16:34:38 -05:00
e6642b5f5b
Fixes #11816 : Detach group/site validation error from group field
2023-12-27 12:51:51 -05:00
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
d2fea4edc4
Closes #14311 : Move L2VPN models from ipam
to vpn
( #14358 )
...
* Move L2VPN and L2VPNTermination models from ipam to vpn
* Move L2VPN resources from ipam to vpn
* Extend migration to update content types
* Misc cleanup
2023-11-28 13:45:00 -05:00
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
c4e765c4a8
Closes #14141 : translation cleanup ( #14143 )
...
* Translations cleanup
* Tweak variable names; misc string cleanup
* Misc cleanup
2023-10-30 13:38:03 -04:00
db40119faa
13130 dont allow reassigning ipaddress assigned object if primary ip ( #13893 )
...
* 13130 dont allow reassigning ipaddress assigned object if primary ip
* 13130 add tests fix parent check
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-26 15:16:02 -04:00
8e251ac33c
13757 Fix ConfigContext reference to DeviceType ( #13804 )
...
* 13757 do prefetch to work around Django issue with vars in init (DeviceType)
* 13757 use self.__dict to access vars in init
* 13757 change test
2023-09-20 09:56:52 -04:00
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -04:00
06f2c6f867
Fixes #13632 : Avoid raising exception when checking if FHRP group IP address is primary
2023-08-31 11:09:49 -04:00
46f734eba2
fix error for is_oob_ip for non-device parents ( #13621 )
...
* fix error for is_oob_ip for non-device parents
* adjust oob_ip_id check to use hasattr
2023-08-31 07:57:14 -04:00
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
a75e8416a4
adds vlan child table to vlan group #13536
2023-08-23 13:39:10 -04:00
2afce6c94b
Introduce ContactsMixin
2023-08-04 10:15:50 -04:00
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
8f271151a7
Closes #11519 : Add a SQL index for IPAddress host value
2023-08-02 09:56:56 -04:00
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
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
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
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
5f0922713f
Fixes #13047 : Add annotate_asn_count() to ASNRange manager
2023-07-06 08:45:02 -04:00
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
08017c51f6
Merge branch 'develop' into feature
2023-04-07 13:00:00 -04:00
b032742418
Closes #12133 : Move any instance mutations inside clean() to save()
2023-04-03 16:26:07 -04:00
c44eb65993
Closes #11325 : Move help_texts from model forms to models
2023-03-01 17:31:54 -05:00
536b46158a
Add mark_utilized to IPRange
2023-03-01 09:27:06 -05:00
7994073687
Closes #8550 : Implement ASN ranges ( #11835 )
...
* Move ASN to a separate module
* Move ASNField from dcim to ipam
* Introduce ASNRange model
* Add relationship from ASN to ASNRange
* Add an available-asns API endpoint
* Add RIR assignment for ASNRange
* Add standard tests
* Move child ASNs to a tabbed view
* Remove FK on ASN to ASNRange
* Add tests for provisioning available ASNs
* Add docs for ASNRange
2023-02-27 16:36:05 -05:00
96a79c2126
Closes #11737 : ChangeLoggedModel should inherit WebhooksMixin
2023-02-19 20:09:51 -05:00
c3dcd8937f
Merge branch 'develop' into feature
2022-11-22 10:08:23 -05:00
4623858849
Fixes #10936 : Permit demotion of device/VM primary IP via IP address edit form
2022-11-21 15:36:13 -05:00
ebf555e1fb
Use strings to specify prerequisite models
2022-11-16 17:22:09 -05:00
6eba5d4d96
10300 initial translation support use gettext
2022-11-11 08:47:29 -05:00
bc6b5bc4be
Closes #10545 : Standardize description & comment fields on primary models ( #10834 )
...
* Standardize description & comments fields on primary models
* Update REST API serializers
* Update forms
* Update tables
* Update templates
2022-11-04 08:28:09 -04:00
e2f5ee661a
Clean up redundant NestedGroupModel, OrganizationalModel fields
2022-11-03 13:59:44 -04:00
bd79a27e4d
Merge branch 'develop' into feature
2022-10-20 16:07:03 -04:00
64d67e3b00
10584 add clone fields to ipam-service
2022-10-18 16:06:31 -04:00
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04:00
8103ad3b9e
9892 add name to str
2022-09-26 13:57:09 -07:00
10cb3c2c3d
9892 add name to str
2022-09-26 13:54:49 -07:00
5d07f2c837
9892 add FHRP group name
2022-09-20 16:03:55 -07:00