Saria Hajjar
2a219eff23
is not None
not needed as the value 'false' is a string
2020-01-02 16:13:47 +00:00
Saria Hajjar
37bc17d3a2
Fixes #2365 : Toggle for showing available prefixes/ip addresses
2020-01-02 09:16:18 +00:00
Jeremy Stretch
4ecbfc4e5e
Service.protocol to slug ( #3569 )
2019-11-27 22:27:06 -05:00
Jeremy Stretch
14a7a33cc2
IPAddress.role to slug ( #3569 )
2019-11-27 22:09:16 -05:00
Jeremy Stretch
929c0648d0
Prefix.status to slug ( #3569 )
2019-11-27 21:46:53 -05:00
chambersh1129
52e9369af4
PEP 8 E121 continuation line under-indented for hanging indent fix
2019-10-09 20:11:02 -04:00
chambersh1129
bdb3838d71
Replace all instances of .extra() in QuerySets with annotations, including references in docstrings
2019-10-09 20:11:02 -04:00
Jeremy Stretch
a3b9bdaff1
Miscellaneous cleanup
2019-10-04 12:59:10 -04:00
John Anderson
ade844f7a7
fixes #3428 - caching invalidation issues
...
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
c2d0e8fd95
Cleanup from earlier work on caching
2019-04-22 14:49:31 -04:00
John Anderson
2580b026fe
change cacheing to use cacheops
2019-04-17 12:29:21 -04:00
John Anderson
4723ddb5ce
move caching to views
2019-04-15 14:41:04 -04:00
Jeremy Stretch
e710ccb0e6
Enforce view permissions for UI views
2019-04-11 17:27:38 -04:00
Jeremy Stretch
ae0c8deec2
Closes #2809 : Remove VRF child prefixes table; link to main prefixes view
2019-01-31 10:06:08 -05:00
Jeremy Stretch
bd7aee7c1f
Closes #2614 : Simplify calls of super() for Python 3
2018-11-27 10:52:24 -05:00
Jeremy Stretch
b05171b126
Upgraded django-tables2 to v2.0.2
2018-11-02 14:27:17 -04:00
Jeremy Stretch
22ed4f1b53
Merge release v2.4.6
2018-10-10 09:36:51 -04:00
Jeremy Stretch
2fee977b4c
Fixes #2485 : Fix cancel button when assigning a service to a device/VM
2018-10-05 10:30:13 -04:00
Jeremy Stretch
980d62d579
Removed Python 2 string compatibility
2018-08-14 11:58:42 -04:00
Jeremy Stretch
d039b9e23d
Merge branch 'develop-2.4' into develop
2018-08-06 12:28:23 -04:00
Vas Sadvariy
33e45a5292
Closes #971 : Implement VLANGroup VLANs view to show available VLANs within a group
2018-08-01 15:59:00 -04:00
Jeremy Stretch
40efa55ec7
Merged release v2.3.7
2018-07-27 11:43:27 -04:00
Jeremy Stretch
ba3ae0d80a
Fixes #2257 : Corrected casting of RIR utilization stats as floats
2018-07-23 14:52:51 -04:00
Jeremy Stretch
beac676a6e
Cleaned up BulkEditView and BulkDeleteView
2018-07-20 21:18:10 -04:00
Jeremy Stretch
cd56e51a61
Closes #1851 : Standardize usage of GetReturnURLMixin
2018-07-02 11:54:41 -04:00
Jeremy Stretch
9d419de9dc
Merge branch 'develop-2.4' into 1898-activity-logging
2018-06-21 16:53:15 -04:00
Jeremy Stretch
7819d9c112
Closes #1673 : Added object/list views for services
2018-06-21 15:55:27 -04:00
Jeremy Stretch
21c4085c51
Moved object header templates into object base templates
2018-06-14 13:34:37 -04:00
Jeremy Stretch
4ec6e52e73
Closes #1990 : Improved search function when assigning an IP address to an interface
2018-03-29 09:45:17 -04:00
Jeremy Stretch
38a208242b
Closes #1945 : Implemented a VLAN members view
2018-03-15 15:33:13 -04:00
Jeremy Stretch
a5d2055c11
Closes #1073 : Include prefixes/IPs from all VRFs when viewing the children of a container prefix in the global table
2018-01-30 13:39:33 -05:00
Jeremy Stretch
50395aa821
Closes #1773 : Moved child prefixes table to its own view
2017-12-20 14:01:37 -05:00
Jeremy Stretch
40ab272995
Fixes #1721 : Differentiated child IP count from utilization percentage for prefixes
2017-11-22 12:40:58 -05:00
Jeremy Stretch
a0bb7b08bd
Closes #1512 : Added a view to search for an IP address being assigned to an interface
2017-11-10 11:58:59 -05:00
Jeremy Stretch
e1d655cb23
Fixes #1471 : Correct bulk selection of IP addresses within a prefix assigned to a VRF
2017-11-10 09:34:30 -05:00
Jeremy Stretch
00986fd7bf
Closes #1691 : Cleaned up and reorganized import statements
2017-11-07 11:08:23 -05:00
Jeremy Stretch
d306e76420
Fixes #1689 : Disregard IP address mask when filtering for child IPs of a prefix
2017-11-06 10:07:44 -05:00
Jeremy Stretch
c6f3b00f0e
Fixes #1676 : Correct filtering of child prefixes upon bulk edit/delete from the parent prefix view
2017-11-02 13:21:19 -04:00
Jeremy Stretch
0a04bb110a
Fixes #1603 : Hide selection checkboxes for tables with no available actions
2017-10-27 10:33:58 -04:00
Jeremy Stretch
977cad3830
Added bulk import views for RIRs, roles, and VLAN groups
2017-10-09 15:42:06 -04:00
Jeremy Stretch
0d9ff907a8
Merge branch 'develop' of github.com:digitalocean/netbox into develop-2.2
2017-09-25 15:12:47 -04:00
Jeremy Stretch
63a4a70420
#1499 : Added utilization graph to child prefixes for aggregates
2017-09-25 13:39:03 -04:00
Jeremy Stretch
a328e12642
Closes #1536 : Improved formatting of aggregate prefix statistics
2017-09-25 12:14:55 -04:00
Jeremy Stretch
ce9f1eb201
Closes #1499 : Added utilization graph to child prefixes table
2017-09-22 21:17:46 -04:00
Jeremy Stretch
d651deb31c
Renamed form_class
attribute to model_form
for consistency
2017-09-12 13:55:11 -04:00
Jeremy Stretch
3bb0d523d3
Enabled services on virtual machines
2017-08-31 12:50:35 -04:00
Jeremy Stretch
0634386b2e
Merge branch 'develop' into virtualization
2017-08-31 10:14:50 -04:00
Jeremy Stretch
a6ec1ba23b
Closes #1376 : Ignore anycast when detecting duplicate IPs
2017-08-30 10:46:30 -04:00
Jeremy Stretch
fa95191792
Allowed assigning an IP address to either a device or a VM
2017-08-29 15:26:35 -04:00
Jeremy Stretch
5930a64203
Converted IPAddress.interface to a GenericForeignKey
2017-08-18 16:57:20 -04:00
Jeremy Stretch
39730b6834
Optimized performance when editing/deleting objects in bulk
2017-07-13 17:39:28 -04:00
Jeremy Stretch
dd1991f2c6
Closes #838 : Display details of all objects being edited/deleted in bulk
2017-07-13 16:31:47 -04:00
Jeremy Stretch
dc68be5abf
Removed SearchTables; created DetailTables for models where needed
2017-07-12 16:42:45 -04:00
Jeremy Stretch
afdf5750b5
Fixes #1279 : Fix primary_ip assignment during IP address import
2017-06-16 12:45:42 -04:00
Jeremy Stretch
8eb9c451a1
Renamed AddViews to CreateViews for consistency
2017-06-13 16:48:21 -04:00
Jeremy Stretch
469c52be28
Fixes #1263 : Differentiate add and edit permissions for objects
2017-06-13 16:41:57 -04:00
Jeremy Stretch
08c8bd3049
Renamed new import view to BulkImportView
2017-06-05 15:53:41 -04:00
Jeremy Stretch
af604aba31
Converted secrets import view to new scheme
2017-06-02 17:23:41 -04:00
Jeremy Stretch
c82658440f
Converted IPAM import views to new scheme
2017-06-02 16:07:11 -04:00
Jeremy Stretch
f21c6bca00
Import unicode_literals
2017-05-24 11:33:11 -04:00
Jeremy Stretch
fb85867d72
Converted all object views to class-based views
2017-05-18 17:00:57 -04:00
Jeremy Stretch
3bc51c8e69
Fixes #1191 : Bulk selection of IPs under a prefix incorrect when "select all" is used
2017-05-17 14:23:08 -04:00
Jeremy Stretch
7f23cb9bf5
Closes #1122 : Include NAT inside IPs in IP address list
2017-05-12 22:11:20 -04:00
Jeremy Stretch
a870a3b918
Fixes #1166 : Re-implemented bulk IP address creation
2017-05-12 12:00:26 -04:00
Jeremy Stretch
58bb029666
Closes #1167 : Introduced ChainedModelChoiceFields
2017-05-11 16:30:16 -04:00
Jeremy Stretch
f73693206f
Merge branch 'develop' into v2-develop
...
Conflicts:
netbox/circuits/models.py
netbox/netbox/settings.py
upgrade.sh
2017-04-21 15:07:48 -04:00
Jeremy Stretch
401357b8cb
Closes #1084 : Include custom fields when creating IP addresses in bulk
2017-04-19 14:50:58 -04:00
Jeremy Stretch
b01bf6089c
Merge branch 'develop' into v2-develop
...
Conflicts:
netbox/dcim/forms.py
netbox/dcim/views.py
netbox/ipam/forms.py
netbox/templates/_base.html
netbox/utilities/views.py
2017-04-13 15:42:50 -04:00
Jeremy Stretch
09000ad9b3
Closes #1001 : Merged IP interface assignment into ipam.IPAddressForm
2017-04-13 14:54:17 -04:00
Jeremy Stretch
f70f0f8d62
Improved handling of return_url for object edit/delete views; removed manual definitions of initial data fields
2017-04-13 13:11:23 -04:00
Jeremy Stretch
d98e9e1838
Resolved RemovedInDjango20Warning deprecation warnings
2017-04-05 14:40:25 -04:00
Jeremy Stretch
28761fc960
Closes #362 : Added per_page query parameter to control pagination page length
2017-03-28 15:57:50 -04:00
Jeremy Stretch
d89314a559
Fixes #943 : Child prefixes missing on Python 3
2017-03-08 14:10:27 -05:00
Jeremy Stretch
ed83b1d9e9
Closes #946 : Disregard mask length when filtering IP addresses by a parent prefix
2017-03-08 11:59:24 -05:00
Jeremy Stretch
f3b9930dea
Initial work on regions
2017-02-28 12:11:43 -05:00
Jeremy Stretch
b7f4a11eee
Fixes #892 : Restored missing edit/delete buttons when viewing child prefixes and IP addresses from a parent object
2017-02-17 16:34:09 -05:00
Jeremy Stretch
198ed859ff
Closes #198 : Support for rackless devices ( #902 )
...
* Initial work to support rackless devices
* Updated device component connection forms
* Updated IP address assignment form
* Updated circuit termination form
* Formatting cleanup
* Fixed tests
2017-02-17 14:48:00 -05:00
Jeremy Stretch
b69564f5c9
Exposed the request to ObjectEditView's alter_obj()
2017-02-15 15:03:31 -05:00
Jeremy Stretch
b370375414
Fixes #861 : Avoid overwriting device primary IP assignment from alternate family during bulk import of IP addresses
2017-01-31 17:25:44 -05:00
Jeremy Stretch
5d5d4ac714
Fixes #845 : Fix missing edit/delete buttons on object tables for non-superusers
2017-01-26 13:20:56 -05:00
Jeremy Stretch
ed8fdd9292
Fixes #816 : Redirect back to parent prefix view after deleting child prefixes
2017-01-24 09:50:51 -05:00
Jeremy Stretch
476cbf17f6
Closes #820 : Add VLAN column to parent prefixes table on IP address view
2017-01-23 14:23:42 -05:00
Jeremy Stretch
52420945b2
Standardized naming of return_url for all object views
2017-01-23 14:07:26 -05:00
Jeremy Stretch
39d083eae7
Re-implemented method for bulk editing/deleting all objects within a filtered queryset
2017-01-20 16:42:11 -05:00
Jeremy Stretch
28a9307f9f
Deprecated use_obj_view in favor of get_return_url()
2017-01-18 14:34:17 -05:00
Jeremy Stretch
cdccc3a47f
Ditched get_parent_url() model method in favor of overrideable get_return_url() view method
2017-01-18 14:07:46 -05:00
Jeremy Stretch
3eb969de0c
Standardized the use of return_url for ObjectDeleteView
2017-01-18 13:30:19 -05:00
Jeremy Stretch
03859d7287
Closes #803 : Clarify that no child objects are deleted when deleting a prefix
2017-01-17 14:52:39 -05:00
Jeremy Stretch
424c2a59d6
Table rendering optimizations
2017-01-06 16:50:57 -05:00
Jeremy Stretch
8edaff860c
Fixes #658 : Added is_pool field to Prefix model
2016-12-27 15:07:52 -05:00
Jeremy Stretch
d9d7068c5f
Fixed bug introduced in 04fd197c9b
2016-12-27 14:18:31 -05:00
Jeremy Stretch
9fd9719d0b
Closes #181 : Implemented support for bulk IP address creation
2016-12-20 15:39:22 -05:00
Jeremy Stretch
712567cabc
Closes #613 : Added prefixes column to VLAN list; added VLAN column to prefix list
2016-12-15 16:56:43 -05:00
Jeremy Stretch
f02c222d4f
Closes #539 : Implemented L4 services for devices
2016-12-15 15:32:58 -05:00
Jeremy Stretch
5035a9567b
Fixes #729 : Corrected cancellation links when editing secondary objects
2016-12-08 12:20:45 -05:00
Jeremy Stretch
f007b0dbde
Closes #695 : Added is_private field to RIR
2016-12-06 13:59:13 -05:00
Jeremy Stretch
f569561997
Another PEP8 fix
2016-11-11 15:09:25 -05:00
Jeremy Stretch
a0ee6b0d58
Closes #667 : Added stats to RIR list view
2016-11-11 15:02:53 -05:00
Jeremy Stretch
d891c8c981
Incorporated stats into RIR list view
2016-11-11 12:45:24 -05:00
Jeremy Stretch
13cdc44caf
#667 : Initial work on RIR statistics
2016-11-04 16:04:29 -04:00
Jeremy Stretch
d97dd266b7
Cleaned up message strings
2016-10-31 11:16:30 -04:00
Jeremy Stretch
e22eafc4a7
Closes #211 : Allow device assignment and removal from IP address view
2016-10-24 15:07:11 -04:00
Jeremy Stretch
7d879bb0dc
Added bulk editing capability for custom fields
2016-08-16 14:57:04 -04:00
Jeremy Stretch
c60c4ad0df
Added templates for IPAM objects; cleaned up admin
2016-08-15 16:58:25 -04:00
Jeremy Stretch
b2f03dfb16
Fixed redirect after editing RackGroups and VLANGroups
2016-08-10 13:13:26 -04:00
Jeremy Stretch
cbde6e8321
Miscellaneous query optimizations
2016-08-10 13:07:11 -04:00
Jeremy Stretch
ac2aa7ea89
Fixes #435 : Added a "add prefix" button to the VLAN view
2016-08-06 15:44:28 -04:00
Jeremy Stretch
e413012cbb
Fixes #427 : Prevent error when duplicate IPs are present in a prefix's IP list
2016-08-04 11:48:30 -04:00
Jeremy Stretch
3b9ac3b986
More intelligent handling of first/last IPs
2016-08-03 12:30:29 -04:00
Jeremy Stretch
79b1bbb9e1
Fixed calculation of available IPs between two existing IPs
2016-08-03 12:20:24 -04:00
Jeremy Stretch
533b4082d8
Fixed calculation of last_ip_in_prefix for IPv6
2016-08-03 12:06:17 -04:00
Jeremy Stretch
81d955ab7d
Rewrote add_available_ipaddresses() to be much more efficient and IPv6-friendly
2016-08-03 12:00:35 -04:00
Jeremy Stretch
57373c9d6f
Initial work on #289
2016-08-02 17:20:12 -04:00
Jeremy Stretch
9f3647cd53
Addresses #395 : Show child prefixes from all VRFs if the parent prefix is in the global table
2016-08-02 15:48:12 -04:00
Jeremy Stretch
1bbe7f95d6
PEP8 cleanup
2016-07-29 14:46:29 -04:00
Jeremy Stretch
75c3e62ca8
Changed VRF and VLAN views to use PrefixBriefTable
2016-07-29 13:03:44 -04:00
Jeremy Stretch
397943b222
Allow unassigning VRF and tenants when editing objects in bulk
2016-07-28 15:59:49 -04:00
Jeremy Stretch
e6c06b39e8
Adds tenant assignment to Prefix and IPAddress objects
2016-07-28 13:50:46 -04:00
Jeremy Stretch
a25534f3de
Fixes #397 : Only include child IPs which belong to the same VRF as the parent prefix
2016-07-28 11:24:25 -04:00
Jeremy Stretch
3bb10bca1b
Linkified VRF column in prefix and IP address tables
2016-07-27 16:52:20 -04:00
Jeremy Stretch
76efea87ff
Closes #394 : Added global option to VRF selection widget during bulk editing
2016-07-27 16:29:30 -04:00
Jeremy Stretch
2abee211a2
Implemented tenancy for VRFs and VLANs
2016-07-27 11:29:20 -04:00
Jeremy Stretch
450c51604c
Replaced all object-specific BulkDeleteForms with the stock form provided by utilities.BulkDeleteView
2016-07-25 17:02:53 -04:00
Jeremy Stretch
d241cce502
ipam.VLAN: Added description field, extended name to 64 chars
2016-07-25 14:58:49 -04:00
Jeremy Stretch
783341017f
Fixes #331 : Add group field to VLAN bulk edit form
2016-07-19 11:11:16 -04:00
Jeremy Stretch
45a8ee7325
Closes #111 : Implement VLAN groups
2016-07-15 13:26:54 -04:00
Jeremy Stretch
4e4bb01a55
Initial work on #93 : Primary IPv4/IPv6 support
2016-07-11 16:24:46 -04:00
Jeremy Stretch
ab880e1053
Fixed IPAddress 'parent prefixes' display; added warning for duplicate IPs
2016-06-27 15:51:47 -04:00
Jeremy Stretch
a3e64a9964
Added 'add an IP address' button to Prefix view
2016-06-09 16:33:24 -04:00
Jeremy Stretch
e80dde3834
Added total IPv4/IPv6 counts to ipam.AggregateListView
2016-05-26 15:35:48 -04:00
Jeremy Stretch
cb8e0c93f2
Implemented object add/edit/delete logging
2016-05-23 14:20:42 -04:00
Jeremy Stretch
c96bfdbc18
Moved PAGINATE_COUNT to configuration.py
2016-05-23 12:55:03 -04:00
Jeremy Stretch
f690be60fd
Code cleanup
2016-05-18 16:20:30 -04:00
Jeremy Stretch
c1e41410c9
Transitioning ipam.Status from model to static field
2016-05-17 16:40:15 -04:00
Jeremy Stretch
ff46970ba9
Introduced CBVs for IPAM Roles
2016-05-17 15:04:16 -04:00
Jeremy Stretch
149720d18a
Introduced consolidated object table template
2016-05-16 16:15:37 -04:00
Jeremy Stretch
e1a0b8fee6
Added CBVs for RIRs
2016-05-16 13:04:45 -04:00
Jeremy Stretch
9df86d5268
Collapsed add/edit functionality into ObjectEditView
2016-05-13 16:36:58 -04:00
Jeremy Stretch
062e64a34d
Collapsed EditTables into primary table for each object
2016-05-13 11:51:50 -04:00
Jeremy Stretch
f4b14b42ee
Converted all delete CBVs to use utilities/obj_delete.html
2016-05-12 15:46:02 -04:00
Jeremy Stretch
bf364b7466
Default to utilities/obj_edit.html for edit views that don't need a custom layout
2016-05-12 15:07:27 -04:00
Jeremy Stretch
a0ffd71755
Consolidated bulk delete views to use a single template
2016-05-11 15:18:39 -04:00
Jeremy Stretch
171f2c008f
Converted IPAM Prefix, IPAddress, VLAN add/edit/delete views to CBVs
2016-05-09 13:10:37 -04:00
Jeremy Stretch
60daaee204
Converted IPAM VRF, Aggregate add/edit/delete views to CBVs
2016-05-09 12:20:46 -04:00
Jeremy Stretch
8e11a3d624
Fixes #4 : Include filter params when redirecting user after bulk edit/delete
2016-04-25 15:39:35 -04:00
Jeremy Stretch
f0f3435792
Fixes #5 : Expand prefix hierarchy when searching for a prefix
2016-03-08 21:41:38 -05:00
Jeremy Stretch
284256777f
Fixed Prefix list hierarchy
2016-03-07 12:56:37 -05:00
Jeremy Stretch
d7e2acbae6
Converted IPAM object lists to ObjectListView
2016-03-04 11:25:20 -05:00
Jeremy Stretch
7776ce5266
Tweaked links to ensure that new child prefixes inherit the VRF and site of their parent by default
2016-03-02 22:15:23 -05:00
Jeremy Stretch
27b289ee3b
Initial push to public repo
2016-03-01 11:23:03 -05:00