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
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
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
15d80f4e1b
12195 remove incorrect null=True on choice fields
2023-04-21 12:23:07 -04:00
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
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
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
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
0b24d3d892
Merge branch 'develop' into feature
2022-11-01 17:13:11 -04:00
aaf1ea52b7
Fixes #10791 : Permit nullifying VLAN group scope_type via REST API
2022-11-01 15:38:10 -04:00
867af61875
10282 fix race condition in API IP creation
2022-10-31 15:04:43 -04:00
e11d594122
9892 add supporting tests, form fields
2022-09-26 11:39:43 -07:00
b11fa53519
Closes #10231 : Add missing serializer annotations
2022-09-01 17:18:09 +02:00
de17a651e6
Closes #10043 : Add support for 'limit' query parameter to available VLANs API endpoint
2022-08-30 15:16:34 -04:00
0b5478ad2d
Fixes #9895 : Change DictField serializers to JSONField
2022-08-29 08:02:38 +02:00
29a611c729
Closes #9896 : Discontinue arbitrary use of OrderedDict
2022-08-01 16:51:44 -04:00
abf11fbcb8
Merge branch 'develop' into feature
2022-07-20 12:20:33 -04:00
e07dd3ddcb
Define NESTED_SERIALIZER_PREFIX constant
2022-07-15 15:31:42 -04:00
3eb6b6c07f
Clean up core API imports
2022-07-13 16:18:55 -04:00
30350e3b40
More fixes as a result of code review
2022-07-06 08:57:15 -05:00
0004b834fb
Commit fixes Jeremy suggested
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:17:50 -05:00
8e39e7f830
Change API urls to plural form
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:03:07 -05:00
aa856e75e8
Change Virtual Circuits to L2VPN
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:02:44 -05:00
b1729f2127
Change Virtual Circuits to L2VPN
...
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:02:29 -05:00
6e983d1542
Fix up some PEP errors
2022-06-29 16:14:30 -05:00
3be9f6c4f3
#8157 - Final work on L2VPN model
2022-06-29 16:01:20 -05:00
03f1584d3a
L2VPN Clean Tree
2022-06-27 23:24:50 -05:00
01d2ede097
Closes #1202 : Support overlapping assignment of NAT IP addresses
2022-05-11 16:22:07 -04:00
bddc35bbc7
Closes #8496 : Enable assigning multiple ASNs to a provider
2022-03-30 17:17:36 -04:00
59aba52b03
Rename OrderedDefaultRouter to NetBoxRouter & document for plugins
2022-03-11 15:59:03 -05:00
bbdeae0ed9
Move CustomFieldModelViewSet functionality into NetBoxModelViewSet
2022-03-09 11:44:55 -05:00
efd5a73a18
Refactor API views
2022-03-09 11:27:42 -05:00
a11abf87ec
Refactor API serializers
2022-03-09 10:59:22 -05:00
cd29293dd6
Merge v3.1.9
2022-03-07 10:55:30 -05:00
2cfbfe473e
Fixes #8807 : Correct REST API URL for FHRP group assignments
2022-03-07 09:02:47 -05:00
97e7ef9a3f
Introduce ServiceTemplate
2022-01-12 16:42:28 -05:00
544d991e1e
Closes #8168 : Add min/max VID fields to VLANGroup
2021-12-23 11:22:10 -05:00
e0cfd5e49b
Closes #2658 : Avalable VLANs API endpoint for VLAN groups
2021-12-23 10:14:28 -05:00
7c14c0812b
Fixes #7519 : Return a 409 status for unfulfillable available prefix/IP requests
2021-12-10 15:11:45 -05:00
91fe158c26
Restore endpoint schema documentation
2021-12-10 13:23:49 -05:00
661b3c4bfb
Fix queryset restrictions
2021-12-10 12:52:48 -05:00
35eabc0353
Move available IPs endpoints to separate views
2021-12-10 12:37:55 -05:00
ef5bbdb1e2
Move available prefixes endpoint to its own view
2021-12-10 11:40:57 -05:00
5f59f458f4
Fixes #7880 : Include assigned IP addresses in FHRP group object representation
2021-11-19 11:34:59 -05:00
3f0a98acbd
Add nested FHRPGroupAssignment serializer; add missing API tests
2021-11-04 11:15:34 -04:00
67c73768c1
Add count_fhrp_groups to interface serializers
2021-11-04 09:58:33 -04:00
7a55832a22
#6732 : Add asns relationship to SiteSerializer and extend tests
2021-11-03 15:24:15 -04:00
db2d71ed9e
Merge branch 'feature' into 6732-asn-model
2021-11-03 08:37:11 -05:00
131e433880
Rename FHRPGroupAssignment object to interface
2021-11-02 15:10:02 -04:00