Jeremy Stretch
63d7a06d02
Fixes #14397 : Pass a mutable copy of request data when provisioning available IPs
2023-12-07 11:20:03 -05:00
Tobias Genannt
df21c34d12
Fix #14026 : Only get the needed amount of objects
2023-10-13 09:25:12 -04:00
Arthur Hanson
dba719d24b
13746 fix available ips API for posting custom-fields ( #13889 )
2023-10-05 15:53:57 -04:00
Arthur Hanson
217394e5ee
12553 prefix serializer to IPAddress ( #13592 )
...
* 12553 prefix serializer to IPAddress
* Introduce IPNetworkField to handle prefix serialization
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-06 10:49:40 -04:00
Jeremy Stretch
ebe6ebf7f3
Merge branch 'develop' into feature
2023-08-15 11:04:03 -04:00
Arthur Hanson
30b2760332
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
09795ead78
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Jeremy Stretch
1d404cc1d3
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
Jeremy Stretch
7afeab59ac
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
Arthur Hanson
45e84befcb
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
f5afcb8dd4
12195 remove incorrect null=True on choice fields
2023-04-21 12:23:07 -04:00
Jeremy Stretch
8e9ddd0189
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
Arthur Hanson
cac9108f5b
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
jeremystretch
70c7959ccf
Add mark_utilized to IPRange
2023-03-01 09:27:06 -05:00
Jeremy Stretch
2b8c41f3d6
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
Jeremy Stretch
acc750ad70
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
jeremystretch
d994ee7b21
Merge branch 'develop' into feature
2022-11-01 17:13:11 -04:00
jeremystretch
be38b00870
Fixes #10791 : Permit nullifying VLAN group scope_type via REST API
2022-11-01 15:38:10 -04:00
Arthur
35cff964fa
10282 fix race condition in API IP creation
2022-10-31 15:04:43 -04:00
Arthur
055dd4ce6d
9892 add supporting tests, form fields
2022-09-26 11:39:43 -07:00
Andreas Nieß
ae8c2afec6
Closes #10231 : Add missing serializer annotations
2022-09-01 17:18:09 +02:00
jeremystretch
05a2a7f625
Closes #10043 : Add support for 'limit' query parameter to available VLANs API endpoint
2022-08-30 15:16:34 -04:00
Andreas Nieß
022fbd7b75
Fixes #9895 : Change DictField serializers to JSONField
2022-08-29 08:02:38 +02:00
jeremystretch
3593fcaa75
Closes #9896 : Discontinue arbitrary use of OrderedDict
2022-08-01 16:51:44 -04:00
jeremystretch
46909071ba
Merge branch 'develop' into feature
2022-07-20 12:20:33 -04:00
jeremystretch
ccbdc6f2b9
Define NESTED_SERIALIZER_PREFIX constant
2022-07-15 15:31:42 -04:00
jeremystretch
a6e3eaa772
Clean up core API imports
2022-07-13 16:18:55 -04:00
Daniel Sheppard
70a64a0635
More fixes as a result of code review
2022-07-06 08:57:15 -05:00
Daniel Sheppard
6dd39b37d9
Commit fixes Jeremy suggested
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2022-07-06 08:17:50 -05:00
Daniel Sheppard
6bbef27b82
Change API urls to plural form
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2022-07-06 08:03:07 -05:00
Daniel Sheppard
9e7d5c4b6c
Change Virtual Circuits to L2VPN
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2022-07-06 08:02:44 -05:00
Daniel Sheppard
5996a43193
Change Virtual Circuits to L2VPN
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2022-07-06 08:02:29 -05:00
Daniel Sheppard
99c6a4d4ba
Fix up some PEP errors
2022-06-29 16:14:30 -05:00
Daniel Sheppard
4a654fc5b8
#8157 - Final work on L2VPN model
2022-06-29 16:01:20 -05:00
Daniel Sheppard
b1394feb68
L2VPN Clean Tree
2022-06-27 23:24:50 -05:00
jeremystretch
60a5049461
Closes #1202 : Support overlapping assignment of NAT IP addresses
2022-05-11 16:22:07 -04:00
jeremystretch
7ca4b857be
Closes #8496 : Enable assigning multiple ASNs to a provider
2022-03-30 17:17:36 -04:00
jeremystretch
46fb20c2d0
Rename OrderedDefaultRouter to NetBoxRouter & document for plugins
2022-03-11 15:59:03 -05:00
jeremystretch
d9993c5b76
Move CustomFieldModelViewSet functionality into NetBoxModelViewSet
2022-03-09 11:44:55 -05:00
jeremystretch
b0621f7fca
Refactor API views
2022-03-09 11:27:42 -05:00
jeremystretch
c813f56a27
Refactor API serializers
2022-03-09 10:59:22 -05:00
jeremystretch
7573dde28f
Merge v3.1.9
2022-03-07 10:55:30 -05:00
jeremystretch
5d611e34ef
Fixes #8807 : Correct REST API URL for FHRP group assignments
2022-03-07 09:02:47 -05:00
jeremystretch
3741df2862
Introduce ServiceTemplate
2022-01-12 16:42:28 -05:00
jeremystretch
620fc25d8c
Closes #8168 : Add min/max VID fields to VLANGroup
2021-12-23 11:22:10 -05:00
jeremystretch
23b0837168
Closes #2658 : Avalable VLANs API endpoint for VLAN groups
2021-12-23 10:14:28 -05:00
jeremystretch
f0d8509419
Fixes #7519 : Return a 409 status for unfulfillable available prefix/IP requests
2021-12-10 15:11:45 -05:00
jeremystretch
074ef6d939
Restore endpoint schema documentation
2021-12-10 13:23:49 -05:00
jeremystretch
9a872e2146
Fix queryset restrictions
2021-12-10 12:52:48 -05:00
jeremystretch
8f9f69679b
Move available IPs endpoints to separate views
2021-12-10 12:37:55 -05:00