1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Commit Graph

268 Commits

Author SHA1 Message Date
36f95f7842 Adds tenant on power feed ()
* adds tenant on power feed

* cleanup

* adds power feed count on tenant object view

* Misc cleanup; add filterset tests

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 08:20:48 -04:00
0f9fe96192 Adds rf_role to interface template ()
* adds rf_role to interface template 

* fixed migration file conflict

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-26 09:13:24 -04:00
5b5444f414 Closes : Cache component template counts on device types 2023-07-25 16:38:05 -04:00
154b8236a2 Oob ip (devices) ()
* 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
149a496011 6347 Cache the number of each component type assigned to devices/VMs ()
---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-25 09:39:05 -04:00
4f76dcd2ea 11305 Add GPS coordinates to device ()
* 11305 add lat/long to devices

* 11305 update docs

* 11305 update tests
2023-06-14 14:18:50 -04:00
4208b79514 Closes : Remove obsolete fields napalm_driver and napalm_args from Platform 2023-05-16 09:35:27 -04:00
896b19eaa3 adds parent device and bay position to table 2023-05-05 15:23:28 -04:00
ea8a0135ad Adds module status to module bay table ()
* adds module status to module bay table 

* removed the extra line

* updated field name
2023-05-04 13:46:31 -04:00
2fcdc0ae6a : Restore ability to edit platform NAPALM fields via UI 2023-04-21 11:21:42 -04:00
d470848b29 Closes : 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
2a9178af12 Merge branch 'develop' into feature 2023-03-13 11:58:37 -04:00
a74ae46f86 Add bridge to InterfaceTemplate 2023-03-07 18:00:24 -05:00
eed6990b39 Closes : Hide virtual interfaces 2023-02-27 14:53:52 -05:00
36771e821c 10520 remove Napalm code references ()
* 10520 remove all Napalm code references

* 10520 remove lldp

* 10520 remove config, status - rebuild js

* 10520 re-add config parameters

* 10520 re-add serializer

* 10520 update docs
2023-02-24 15:38:50 -05:00
73a7a2d27a Closes : Implement config template rendering ()
* WIP

* Add config_template field to Device

* Pre-fetch referenced templates

* Correct up_to_date callable

* Add config_template FK to Device

* Update & merge migrations

* Add config_template FK to Platform

* Add tagging support for ConfigTemplate

* Catch exceptions when rendering device templates in UI

* Refactor ConfigTemplate.render()

* Add support for returning plain text content

* Add ConfigTemplate model documentation

* Add feature documentation for config rendering
2023-02-19 20:09:52 -05:00
81b8046d1d Fixes - Add default_platform to DeviceType 2023-02-19 20:09:51 -05:00
48e5b395b2 Standardize linking to related objects in tables 2023-02-19 20:09:51 -05:00
8e94eb67d2 Add the enabled filed to InterfaceTemplate 2023-02-19 20:09:51 -05:00
22a9df82e6 Closes : Add module types count to manufacturers list 2023-01-26 08:46:25 -05:00
d5ccda355f Fixes : Correct ordering of virtual chassis interfaces with duplicate names 2023-01-24 15:44:02 -05:00
db7e1b8a97 11537 remove connection from power feed table 2023-01-20 11:52:56 -05:00
ea327e6b37 Closes : Add buttons to edit cables ()
* Added buttons to edit cables

* Revert change that did not address this branch

* Consolidated buttons

* moved back trace button / added permission checks

* reverted disabled trace button
2023-01-06 15:11:29 -05:00
c7108bb3f7 Fixes - Fix exporting interfaces and FHRP group rows with multiple IP's assigned ()
undefined
2022-12-27 10:15:28 -05:00
064e3ff605 Merge branch 'develop' into feature 2022-12-13 17:17:05 -05:00
96a796ebde Fixes : Enable missing tags columns for contact, L2VPN lists 2022-12-13 14:04:50 -05:00
13d39a28ce : Misc cleanup 2022-12-12 12:34:05 -05:00
0b100b8fc8 Closes : Add max_weight field to track maximum load capacity for racks 2022-12-09 12:45:02 -05:00
97aa40f7a8 Closes : Add operational status field for modules 2022-12-09 10:43:29 -05:00
4297c65f87 Closes : Enable recurring execution of scheduled reports & scripts ()
* Add interval to JobResult

* Accept a recurrence interval when executing scripts & reports

* Cleaned up jobs list display

* Schedule next job only if a reference start time can be determined

* Improve validation for scheduled jobs
2022-12-08 18:17:13 -05:00
9774bb46ce Fixes : Fix device links in VDC table 2022-11-18 16:33:06 -05:00
43bbd42d3c Fixes : Add missing VDCs column to interface tables 2022-11-17 12:29:30 -05:00
b374351154 Closes: - Add VDC/Instances/etc ()
* Work on 

* Move to new URL scheme.

* Fix PEP8 errors

* Fix PEP8 errors

* Add GraphQL and fix primary_ip missing

* Fix PEP8 on GQL Type

* Fix missing NestedSerializer.

* Fix missing NestedSerializer & rename VDC to VDCs

* Fix migration

* Change Validation for identifier

* Fix missing migration

* Rebase to feature

* Post-review changes

* Remove VDC Type
* Remove M2M Enforcement logic

* Interface related changes

* Add filter fields to filterset for Interface filter
* Add form field to filterset form for Interface filter
* Add VDC display to interface detail template

* Remove VirtualDeviceContextTypeChoices

* Accommodate recent changes in feature branch

* Add tests
Add missing search()

* Update tests, and fix model form

* Update test_api

* Update test_api.InterfaceTest create_data

* Fix issue with tests

* Update interface serializer

* Update serializer and tests

* Update status to be required

* Remove error message for constraint

* Remove extraneous import

* Re-ordered devices menu to place VDC below virtual chassis

* Add helptext for `identifier` field

* Fix breadcrumb link

* Remove add interface link

* Add missing tenant and status fields

* Changes to tests as per Jeremy

* Change for 

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>

* Update filterset form for status field

* Remove Rename View

* Change tabs to spaces

* Update netbox/dcim/tables/devices.py

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>

* Update netbox/dcim/tables/devices.py

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>

* Fix tenant in bulk_edit

* Apply suggestions from code review

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>

* Add status field to table.

* Re-order table fields.

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-11-11 07:55:49 -05:00
bc6b5bc4be Closes : Standardize description & comment fields on primary models ()
* 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
d773f4e62a Closes : Add mounting_depth field to rack model 2022-10-27 10:50:54 -04:00
bd79a27e4d Merge branch 'develop' into feature 2022-10-20 16:07:03 -04:00
2fe8df3cbb 10655 fix contacts display in list views ()
* 10655 fix contacts display in list views

* 10655 review changes
2022-10-18 16:47:14 -04:00
5cc55d1e99 Fixes: Format all remaining displayed rackunits with floatformat ()
* Fixes:  Try to finish  and format all remaining displayed rackunits with floatformat

* : PEP8 fix

Co-authored-by: Patrick Hurrelmann <patrick.hurrelmann@nfon.com>
Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-30 17:18:12 -04:00
10352ff5ad Merge branch 'develop' into feature 2022-09-30 17:17:18 -04:00
204c10c053 9654 device weight ()
* 9654 add weight fields to devices

* 9654 changes from code review

* 9654 change _abs_weight to grams

* Resolve migrations conflict

* 9654 code-review changes

* 9654 total weight on devices

* Misc cleanup

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-09-30 16:31:04 -04:00
669e86f96e Fixes: Format all remaining displayed rackunits with floatformat ()
* Fixes:  Try to finish  and format all remaining displayed rackunits with floatformat

* : PEP8 fix

Co-authored-by: Patrick Hurrelmann <patrick.hurrelmann@nfon.com>
Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-27 11:24:19 -04:00
157a45b627 Merge pull request from netbox-community/10359-add-region-column
 add region column to site table
2022-09-15 13:07:59 -04:00
e9a91455e8 : Add region and site group columns to the devices table 2022-09-15 12:55:21 -04:00
c4b7ab067a Fixes : Allow changing selected device/VM when creating a new component ()
* Initial work on 

* Continued work on 

* Clean up component creation tests

* Move valdiation of replicated field to form

* Clean up ordering of fields in component creation forms

* Omit fieldset header if none

* Clean up ordering of fields in component template creation forms

* View tests should not move component templates to new device type

* Define replication_fields on VMInterfaceCreateForm

* Clean up expandable field help texts

* Update comments

* Update component bulk update forms & views to support new replication fields

* Fix ModularDeviceComponentForm parent class

* Fix bulk creation of VM interfaces (thanks @kkthxbye-code!)
2022-09-15 10:10:32 -04:00
4d97043e26 add region column to site table 2022-09-14 15:50:45 -07:00
b702822857 Closes : Omit trailing ".0" in device positions within UI 2022-09-07 14:09:17 -04:00
2acfda3dc5 Fixes : Add L2VPN column to interface and VLAN tables 2022-09-02 14:26:35 -04:00
14f79ef85a Closes : Clean up TemplateColumn template code & accessors 2022-08-30 09:55:12 -04:00
924471ee76 Clean up cable terminations display & edit form 2022-08-30 09:16:17 -04:00
cd5844b050 Fixes : Fix permissions evaluation for interface actions dropdown menu 2022-08-30 08:59:50 -04:00