Commit Graph

66 Commits

Author SHA1 Message Date
Daniel Sheppard
21d32228c4 Closes #14538 - Add available_at_site filter (#14541)
* Closes #14538 - Add available_at_site filter

* Add tests

* Fix tests
2023-12-21 15:40:57 -05:00
Artem Kotik
60afc6a323 Closes #13936: Add primary_ip4 and primary_ip6 filters to VirtualMachine and VirtualDeviceContext filtersets (#14203)
* Add primary_ip4 and primary_ip6 filters for VirtualMachine and VirtualDeviceContext filtersets (#13936)

* Add PrimaryIPFilterSet to __all__

---------

Co-authored-by: Artem I. Kotik <artem.i.kotik@ringcentral.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 09:56:43 -05:00
Abhimanyu Saharan
e4fed1f5ec Adds mask length filters on ipaddress (#14218)
* adds mask length filters on ipaddress #14101

* Change IPaddress mask_length filter to multi-value; extend tests

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 08:46:14 -05:00
Abhimanyu Saharan
94ee9023ee Adds parent filter on iprange (#13568)
* adds parent filter on iprange #13313

* lint fix

* adds filterset test

* Filter should match both start & end of IP range

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-28 09:05:43 -04:00
Abhimanyu Saharan
0c8efdbb7d 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
Abhimanyu Saharan
a3a9fbec10 fixes most schema warnings #12257 2023-06-23 14:19:40 -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
6acc947c65 Merge branch 'develop' into feature 2023-03-13 11:58:37 -04:00
rmanyari
c289d378dd Fixes #11470: Validation and user friendly message on invalid address query param (#11858)
* Fixes #11470: Validation and user friendly message on invalid address query param

* Update invalid input handling to return empty set instead of raising exception
2023-03-01 16:49:40 -05: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
jeremystretch
2208956596 Closes #11110: Add start_address and end_address filters for IP ranges 2023-02-17 16:50:10 -05:00
kkthxbye-code
f870931e4f Fixes #11601 - Add partial lookup to IPRangeFilterSet 2023-02-08 14:50:22 -05:00
jeremystretch
d3aa423ada Closes #11585: Add IP address filters for services 2023-01-25 21:25:25 -05:00
jeremystretch
525b7913ca #11118: Extend L2VPN filters to device & VM interfaces 2023-01-20 09:58:58 -05:00
Abhimanyu Saharan
b0df4ad642 added l2vpn_termination on vlan filterset (#11501)
* added l2vpn_termination on vlan filterset

* added l2vpn to vlan filterset
2023-01-20 09:34:41 -05:00
jeremystretch
c999b73314 Merge branch 'develop' into feature 2022-12-08 09:31:22 -05:00
Jeremy Stretch
25bff12150 Closes #11119: Enable filtering L2VPNs by slug 2022-12-06 15:48:22 -05:00
Arthur
b06845e666 10300 initial translation support use gettext 2022-11-11 08:47:29 -05:00
Arthur
055dd4ce6d 9892 add supporting tests, form fields 2022-09-26 11:39:43 -07:00
Arthur
fb980fb299 9892 add FHRP group name 2022-09-20 16:13:01 -07:00
Daniel Sheppard
c3a0b5c2a7 Fixes #10111 - Wrap search QS to catch ValueError on identifier field 2022-08-23 09:33:36 -05:00
Daniel Sheppard
4c37bf8430 Fix up a few minor mistakes. Add tests. 2022-08-02 13:38:17 -05:00
Daniel Sheppard
6a7f3b15ff #9888 - Add filter and columns for device and site 2022-08-02 12:56:10 -05:00
jeremystretch
b5ce566e31 #8157: General cleanup & fix tests 2022-07-11 21:51:39 -04: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
68a7cd1323 Closes #8882: Support filtering IP addresses by multiple parent prefixes 2022-06-07 11:00:14 -04:00
Daniel Sheppard
49862c55de Merge remote-tracking branch 'origin/develop' into develop 2022-05-13 09:29:12 -05:00
Daniel Sheppard
d31a8b1594 Fixes #9094 - Fix partial address search within Prefix and Aggregate filters 2022-05-13 09:28:24 -05:00
Daniel Sheppard
39fc13f005 Fixes #9094 - Fix partial address search within Prefix and Aggregate filters 2022-05-13 09:08:00 -05:00
devon-mar
25fc04ce28 Add device & vm to FHRPGroupAssignmentFilterSet (#9314)
* Add device & vm to `FHRPGroupAssignmentFilterSet`

* Apply suggestions from code review

* Update netbox/ipam/tests/test_filtersets.py

* Update netbox/ipam/filtersets.py

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-05-11 10:27:50 -04:00
jeremystretch
6b1e690df0 Fixes #9116: assigned_to_interface filter for IP addresses should not match FHRP group assignments 2022-04-12 10:07:31 -04:00
jeremystretch
cac2685e99 Closes #9081: Add fhrpgroup_id filter for IP addresses 2022-04-12 09:56:33 -04:00
jeremystretch
fdc44c65ee Merge branch 'develop' into feature 2022-03-18 13:17:11 -04:00
jeremystretch
7a74319d2e Fixes #8844: Correct VLAN ID max value 2022-03-14 09:57:51 -04:00
jeremystretch
0213862900 Move q filter to NetBoxModelFilterSet 2022-03-11 16:16:58 -05:00
jeremystretch
a8ee0f1e4d Merge branch 'develop' into feature 2022-02-25 14:06:45 -05:00
Djothi Carpentier
b352387ccc Add description filter for VRF, RouteTarget, Aggregate, ASN, Role, Prefix, IPRange, VLAN & Service 2022-02-25 18:15:33 +01:00
jeremystretch
510a5fbb69 Merge v3.1.7 2022-02-03 12:55:34 -05:00
jeremystretch
32d2caf639 Closes #8453: Rename PrimaryModelFilterSet to NetBoxModelFilterSet & expose for plugins 2022-01-27 09:27:33 -05:00
jeremystretch
75a5bf6980 Move TagFilter to PrimaryFilterSet 2022-01-25 16:11:49 -05:00
jeremystretch
66e1d25ec6 Closes #8367: Add ASNs to global search function 2022-01-18 15:36:21 -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
c738bbaaae Clean up FHRP group filterset tests 2021-11-04 13:23:02 -04:00
jeremystretch
24dc612950 Clean up filtersets 2021-11-03 16:58:31 -04:00
Daniel Sheppard
901f08798e Merge branch 'feature' into 6732-asn-model 2021-11-03 08:37:11 -05:00
jeremystretch
b7189be52e Rename FHRPGroupAssignment object to interface 2021-11-02 15:10:02 -04:00
jeremystretch
639b541228 Enable filtering FHRP groups by related IP addresses 2021-11-02 09:56:52 -04:00