Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v3.1.3 #8185

Merged
merged 51 commits into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
038d7e0
Add missing HTTP_X_FORWARDED_FOR
davama Nov 19, 2021
2ec64a2
Get_Environment from napalm should not need any decoding
rizlas Dec 14, 2021
42b590a
PRVB
jeremystretch Dec 20, 2021
3a54ecb
Fix #8097: Re-fix markdown table rendering
kkthxbye-code Dec 20, 2021
872691a
Convert scripts to use HTMX
jeremystretch Dec 21, 2021
4ae2b4e
Convert reports to use HTMX
jeremystretch Dec 21, 2021
17ba0a9
Remove jobs Javascript
jeremystretch Dec 21, 2021
8af12b2
Clean up report & script templates
jeremystretch Dec 21, 2021
9ffd791
Merge pull request #8130 from netbox-community/8114-htmx-jobs
jeremystretch Dec 21, 2021
b755c7d
Add changelog for #7962 (via #8114)
jeremystretch Dec 21, 2021
57a78b3
Clean up device/devicetype tab views
jeremystretch Dec 21, 2021
c91eb8f
Remove extraneous output from service edit template
jeremystretch Dec 21, 2021
7ba45b2
Clean up imports
jeremystretch Dec 21, 2021
f2f10df
Fix RearPortTemplateTable buttons
jeremystretch Dec 21, 2021
a0db108
Fixes #8131: Restore annotation of available IPs under prefix IPs view
jeremystretch Dec 21, 2021
39a0b15
Update netbox/dcim/api/views.py
rizlas Dec 21, 2021
853a52f
Merge branch 'develop' into fix-8097
jeremystretch Dec 21, 2021
7569544
Merge pull request #8063 from rizlas/develop
jeremystretch Dec 21, 2021
fa38cdb
Merge pull request #8121 from kkthxbye-code/fix-8097
jeremystretch Dec 21, 2021
d275538
Changelog & cleanup for #7246, #8097
jeremystretch Dec 21, 2021
ceb941d
Closes #8135: Append version when fetching static assets
jeremystretch Dec 21, 2021
8e95ac4
Closes #8100: Add "other" choice for FHRP group protocol
jeremystretch Dec 21, 2021
373cc74
Fixes #8134: reinitialize event listeners when HTMX swaps elements
thatmattlove Dec 21, 2021
344fb63
Fixes #8127: Fix disassociation of interface under IP address edit view
jeremystretch Dec 21, 2021
f1350a1
FIxes #7972: Standardize name of RemoteUserBackend logger
jeremystretch Dec 21, 2021
d4b6fe1
Fixes #8138: Fix alignment of tags panel within IP address view
jeremystretch Dec 21, 2021
2755606
Fixes #8139: Fix rendering of table configuration form under VM inter…
jeremystretch Dec 21, 2021
fb4511d
Fixes #8140: Restore missing fields on wireless LAN & link REST API s…
jeremystretch Dec 22, 2021
063abc8
Merge pull request #8153 from davama/develop
jeremystretch Dec 22, 2021
0a73724
Changelog for #7887
jeremystretch Dec 22, 2021
37065b7
Remove obsolete template
jeremystretch Dec 22, 2021
f369b5f
Reorganize & clean up templatetag templates
jeremystretch Dec 22, 2021
94c7f64
Relocate confirmation_form.html
jeremystretch Dec 22, 2021
4c4cab8
#7449: Don't color valid form fields
jeremystretch Dec 22, 2021
7fe4501
#7449: Remove red color from logout link
jeremystretch Dec 22, 2021
d650d10
#7449: Apply distinctive styling to top navbar
jeremystretch Dec 22, 2021
3d7d19b
Move rendering logic under CustomLink class
jeremystretch Dec 23, 2021
9dafb36
Introduce CustomLinkColumn
jeremystretch Dec 23, 2021
99e0dce
Changelog & docs for #6782
jeremystretch Dec 23, 2021
cab9733
Merge pull request #8159 from netbox-community/6782-custom-link-columns
jeremystretch Dec 23, 2021
908a282
Reduce saturation of 'info' theme color
jeremystretch Dec 23, 2021
542534a
Add direct link to preferences in user menu
jeremystretch Dec 23, 2021
1987647
Closes #8175: Display parent object when attaching an image
jeremystretch Dec 28, 2021
35e346c
Fix circuit termination button style
jeremystretch Dec 28, 2021
b0350e9
Remove navbar background color
jeremystretch Dec 29, 2021
146a51c
Clean up API tokens view
jeremystretch Dec 29, 2021
9c9fcaf
Fixes #7290: Defer loading API-backed form fields
jeremystretch Dec 29, 2021
f2aa35d
Closes #7600: Include count of available IPs on prefix view
jeremystretch Dec 29, 2021
82a0240
Closes #8182: Introduce checkmark template tag
jeremystretch Dec 29, 2021
43fadab
Closes #8034: Enable specifying custom field validators during CSV im…
jeremystretch Dec 29, 2021
13c4d13
Release NetBox v3.1.3
jeremystretch Dec 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
attributes:
label: NetBox version
description: What version of NetBox are you currently running?
placeholder: v3.1.2
placeholder: v3.1.3
validations:
required: true
- type: dropdown
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
attributes:
label: NetBox version
description: What version of NetBox are you currently running?
placeholder: v3.1.2
placeholder: v3.1.3
validations:
required: true
- type: dropdown
Expand Down
4 changes: 4 additions & 0 deletions docs/models/extras/customlink.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ The link will only appear when viewing a device with a manufacturer name of "Cis
## Link Groups

Group names can be specified to organize links into groups. Links with the same group name will render as a dropdown menu beneath a single button bearing the name of the group.

## Table Columns

Custom links can also be included in object tables by selecting the desired links from the table configuration form. When displayed, each link will render as a hyperlink for its corresponding object. When exported (e.g. as CSV data), each link render only its URL.
26 changes: 26 additions & 0 deletions docs/release-notes/version-3.1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# NetBox v3.1

## v3.1.3 (2021-12-29)

### Enhancements

* [#6782](https://github.com/netbox-community/netbox/issues/6782) - Enable the inclusion of custom links in tables
* [#7600](https://github.com/netbox-community/netbox/issues/7600) - Include count of available IPs on prefix view
* [#8034](https://github.com/netbox-community/netbox/issues/8034) - Enable specifying custom field validators during CSV import
* [#8100](https://github.com/netbox-community/netbox/issues/8100) - Add "other" choice for FHRP group protocol
* [#8175](https://github.com/netbox-community/netbox/issues/8175) - Display parent object when attaching an image

### Bug Fixes

* [#7246](https://github.com/netbox-community/netbox/issues/7246) - Don't attempt to URL-decode NAPALM response payloads
* [#7290](https://github.com/netbox-community/netbox/issues/7290) - Defer loading API-backed form fields
* [#7887](https://github.com/netbox-community/netbox/issues/7887) - Forward `HTTP_X_FORWARDED_FOR` to custom scripts
* [#7962](https://github.com/netbox-community/netbox/issues/7962) - Fix user menu under report/script result view
* [#7972](https://github.com/netbox-community/netbox/issues/7972) - Standardize name of `RemoteUserBackend` logger
* [#8097](https://github.com/netbox-community/netbox/issues/8097) - Fix styling of Markdown tables
* [#8127](https://github.com/netbox-community/netbox/issues/8127) - Fix disassociation of interface under IP address edit view
* [#8131](https://github.com/netbox-community/netbox/issues/8131) - Restore annotation of available IPs under prefix IPs view
* [#8134](https://github.com/netbox-community/netbox/issues/8134) - Fix bulk editing of objects within dynamic tables
* [#8139](https://github.com/netbox-community/netbox/issues/8139) - Fix rendering of table configuration form under VM interfaces view
* [#8140](https://github.com/netbox-community/netbox/issues/8140) - Restore missing fields on wireless LAN & link REST API serializers

---

## v3.1.2 (2021-12-20)

### Enhancements
Expand Down
30 changes: 10 additions & 20 deletions netbox/circuits/forms/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ class ProviderFilterForm(CustomFieldModelFilterForm):
region_id = DynamicModelMultipleChoiceField(
queryset=Region.objects.all(),
required=False,
label=_('Region'),
fetch_trigger='open'
label=_('Region')
)
site_group_id = DynamicModelMultipleChoiceField(
queryset=SiteGroup.objects.all(),
required=False,
label=_('Site group'),
fetch_trigger='open'
label=_('Site group')
)
site_id = DynamicModelMultipleChoiceField(
queryset=Site.objects.all(),
Expand All @@ -42,8 +40,7 @@ class ProviderFilterForm(CustomFieldModelFilterForm):
'region_id': '$region_id',
'site_group_id': '$site_group_id',
},
label=_('Site'),
fetch_trigger='open'
label=_('Site')
)
asn = forms.IntegerField(
required=False,
Expand All @@ -61,8 +58,7 @@ class ProviderNetworkFilterForm(CustomFieldModelFilterForm):
provider_id = DynamicModelMultipleChoiceField(
queryset=Provider.objects.all(),
required=False,
label=_('Provider'),
fetch_trigger='open'
label=_('Provider')
)
tag = TagFilterField(model)

Expand All @@ -84,23 +80,20 @@ class CircuitFilterForm(TenancyFilterForm, CustomFieldModelFilterForm):
type_id = DynamicModelMultipleChoiceField(
queryset=CircuitType.objects.all(),
required=False,
label=_('Type'),
fetch_trigger='open'
label=_('Type')
)
provider_id = DynamicModelMultipleChoiceField(
queryset=Provider.objects.all(),
required=False,
label=_('Provider'),
fetch_trigger='open'
label=_('Provider')
)
provider_network_id = DynamicModelMultipleChoiceField(
queryset=ProviderNetwork.objects.all(),
required=False,
query_params={
'provider_id': '$provider_id'
},
label=_('Provider network'),
fetch_trigger='open'
label=_('Provider network')
)
status = forms.MultipleChoiceField(
choices=CircuitStatusChoices,
Expand All @@ -110,14 +103,12 @@ class CircuitFilterForm(TenancyFilterForm, CustomFieldModelFilterForm):
region_id = DynamicModelMultipleChoiceField(
queryset=Region.objects.all(),
required=False,
label=_('Region'),
fetch_trigger='open'
label=_('Region')
)
site_group_id = DynamicModelMultipleChoiceField(
queryset=SiteGroup.objects.all(),
required=False,
label=_('Site group'),
fetch_trigger='open'
label=_('Site group')
)
site_id = DynamicModelMultipleChoiceField(
queryset=Site.objects.all(),
Expand All @@ -126,8 +117,7 @@ class CircuitFilterForm(TenancyFilterForm, CustomFieldModelFilterForm):
'region_id': '$region_id',
'site_group_id': '$site_group_id',
},
label=_('Site'),
fetch_trigger='open'
label=_('Site')
)
commit_rate = forms.IntegerField(
required=False,
Expand Down
6 changes: 3 additions & 3 deletions netbox/dcim/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
from dcim import filtersets
from dcim.models import *
from extras.api.views import ConfigContextQuerySetMixin, CustomFieldModelViewSet
from ipam.models import Prefix, VLAN, ASN
from ipam.models import Prefix, VLAN
from netbox.api.authentication import IsAuthenticatedOrLoginNotRequired
from netbox.api.exceptions import ServiceUnavailable
from netbox.api.metadata import ContentTypeMetadata
from netbox.api.views import ModelViewSet
from netbox.config import get_config
from utilities.api import get_serializer_for_model
from utilities.utils import count_related, decode_dict
from utilities.utils import count_related
from virtualization.models import VirtualMachine
from . import serializers
from .exceptions import MissingFilterException
Expand Down Expand Up @@ -501,7 +501,7 @@ def napalm(self, request, pk):
response[method] = {'error': 'Only get_* NAPALM methods are supported'}
continue
try:
response[method] = decode_dict(getattr(d, method)())
response[method] = getattr(d, method)()
except NotImplementedError:
response[method] = {'error': 'Method {} not implemented for NAPALM driver {}'.format(method, driver)}
except Exception as e:
Expand Down
Loading