Skip to content

Commit a0ae7a2

Browse files
Merge pull request #3828 from netbox-community/develop
Release v2.6.10
2 parents 50df3ac + 9ef3e68 commit a0ae7a2

37 files changed

+2160
-137
lines changed

CONTRIBUTING.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For real-time discussion, you can join the #netbox Slack channel on [NetworkToCo
1616

1717
## Reporting Bugs
1818

19-
* First, ensure that you've installed the [latest stable version](https://github.com/netbox-community/netbox/releases)
19+
* First, ensure that you're running the [latest stable version](https://github.com/netbox-community/netbox/releases)
2020
of NetBox. If you're running an older version, it's possible that the bug has
2121
already been fixed.
2222

@@ -28,27 +28,26 @@ up (+1). You might also want to add a comment describing how it's affecting your
2828
installation. This will allow us to prioritize bugs based on how many users are
2929
affected.
3030

31-
* If you haven't found an existing issue that describes your suspected bug,
32-
please inquire about it on the mailing list. **Do not** file an issue until you
33-
have received confirmation that it is in fact a bug. Invalid issues are very
34-
distracting and slow the pace at which NetBox is developed.
35-
3631
* When submitting an issue, please be as descriptive as possible. Be sure to
37-
include:
32+
provide all information request in the issue template, including:
3833

3934
* The environment in which NetBox is running
40-
* The exact steps that can be taken to reproduce the issue (if applicable)
35+
* The exact steps that can be taken to reproduce the issue
36+
* Expected and observed behavior
4137
* Any error messages generated
4238
* Screenshots (if applicable)
4339

4440
* Please avoid prepending any sort of tag (e.g. "[Bug]") to the issue title.
45-
The issue will be reviewed by a moderator after submission and the appropriate
41+
The issue will be reviewed by a maintainer after submission and the appropriate
4642
labels will be applied for categorization.
4743

4844
* Keep in mind that we prioritize bugs based on their severity and how much
4945
work is required to resolve them. It may take some time for someone to address
5046
your issue.
5147

48+
* For more information on how bug reports are handled, please see our [issue
49+
intake policy](https://github.com/netbox-community/netbox/wiki/Issue-Intake-Policy).
50+
5251
## Feature Requests
5352

5453
* First, check the GitHub [issues list](https://github.com/netbox-community/netbox/issues)
@@ -61,10 +60,10 @@ free to add a comment with any additional justification for the feature.
6160
(However, note that comments with no substance other than a "+1" will be
6261
deleted. Please use GitHub's reactions feature to indicate your support.)
6362

64-
* Due to an excessive backlog of feature requests, we are not currently
65-
accepting any proposals which substantially extend NetBox's functionality
66-
beyond its current feature set. This includes the introduction of any new views
67-
or models which have not already been proposed in an existing feature request.
63+
* Due to a large backlog of feature requests, we are not currently accepting
64+
any proposals which substantially extend NetBox's functionality beyond its
65+
current feature set. This includes the introduction of any new views or models
66+
which have not already been proposed in an existing feature request.
6867

6968
* Before filing a new feature request, consider raising your idea on the
7069
mailing list first. Feedback you receive there will help validate and shape the
@@ -75,8 +74,8 @@ describe the functionality and data model(s) being proposed. The more effort
7574
you put into writing a feature request, the better its chance is of being
7675
implemented. Overly broad feature requests will be closed.
7776

78-
* When submitting a feature request on GitHub, be sure to include the
79-
following:
77+
* When submitting a feature request on GitHub, be sure to include all
78+
information requested by the issue template, including:
8079

8180
* A detailed description of the proposed functionality
8281
* A use case for the feature; who would use it and what value it would add
@@ -89,6 +88,9 @@ following:
8988
title. The issue will be reviewed by a moderator after submission and the
9089
appropriate labels will be applied for categorization.
9190

91+
* For more information on how feature requests are handled, please see our
92+
[issue intake policy](https://github.com/netbox-community/netbox/wiki/Issue-Intake-Policy).
93+
9294
## Submitting Pull Requests
9395

9496
* Be sure to open an issue **before** starting work on a pull request, and
@@ -103,7 +105,7 @@ any work that's already in progress.
103105

104106
* When submitting a pull request, please be sure to work off of the `develop`
105107
branch, rather than `master`. The `develop` branch is used for ongoing
106-
development, while `master` is used for tagging new stable releases.
108+
development, while `master` is used for tagging stable releases.
107109

108110
* All code submissions should meet the following criteria (CI will enforce
109111
these checks):
@@ -122,27 +124,26 @@ reduce noise in the discussion.
122124

123125
## Issue Lifecycle
124126

125-
When a correctly formatted issue is submitted it is evaluated by a moderator
126-
who may elect to immediately label the issue as accepted in addition to another
127-
issue type label. In other cases, the issue may be labeled as "status: gathering feedback"
128-
which will often be accompanied by a comment from a moderator asking for further dialog from the community.
129-
If an issue is labeled as "status: revisions needed" a moderator has identified a problem with
130-
the issue itself and is asking for the submitter himself to update the original post with
131-
the requested information. If the original post is not updated in a reasonable amount of time,
132-
the issue will be closed as invalid.
127+
New issues are handled according to our [issue intake policy](https://github.com/netbox-community/netbox/wiki/Issue-Intake-Policy).
128+
Maintainers will assign label(s) and/or close new issues as the policy
129+
dictates. This helps ensure a productive development environment and avoid
130+
accumulating a large backlog of work.
133131

134-
The core maintainers group has chosen to make use of the GitHub Stale bot to aid in issue management.
132+
The core maintainers group has chosen to make use of GitHub's [Stale bot](https://github.com/apps/stale)
133+
to aid in issue management.
135134

136135
* Issues will be marked as stale after 14 days of no activity.
137136
* Then after 7 more days of inactivity, the issue will be closed.
138-
* Any issue bearing one of the following labels will be exempt from all Stale bot actions:
137+
* Any issue bearing one of the following labels will be exempt from all Stale
138+
bot actions:
139139
* `status: accepted`
140140
* `status: gathering feedback`
141141
* `status: blocked`
142142

143-
It is natural that some new issues get more attention than others. Often this is a metric of an issues's
144-
overall usefulness to the project. In other cases in which issues merely get lost in the shuffle,
145-
notifications from Stale bot can bring renewed attention to potentially meaningful issues.
143+
It is natural that some new issues get more attention than others. Often this
144+
is a metric of an issues's overall value to the project. In other cases in
145+
which issues merely get lost in the shuffle, notifications from Stale bot can
146+
bring renewed attention to potentially meaningful issues.
146147

147148
## Maintainer Guidance
148149

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![NetBox](docs/netbox_logo.png "NetBox logo")
1+
![NetBox](docs/netbox_logo.svg "NetBox logo")
22

33
NetBox is an IP address management (IPAM) and data center infrastructure
44
management (DCIM) tool. Initially conceived by the network engineering team at

docs/additional-features/custom-scripts.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ The checkbox to commit database changes when executing a script is checked by de
7171
commit_default = False
7272
```
7373

74+
## Accessing Request Data
75+
76+
Details of the current HTTP request (the one being made to execute the script) are available as the instance attribute `self.request`. This can be used to infer, for example, the user executing the script and the client IP address:
77+
78+
```python
79+
username = self.request.user.username
80+
ip_address = self.request.META.get('HTTP_X_FORWARDED_FOR') or self.request.META.get('REMOTE_ADDR')
81+
self.log_info("Running as user {} (IP: {})...".format(username, ip_address))
82+
```
83+
84+
For a complete list of available request parameters, please see the [Django documentation](https://docs.djangoproject.com/en/stable/ref/request-response/).
85+
7486
## Reading Data from Files
7587

7688
The Script class provides two convenience methods for reading data from files:

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![NetBox](netbox_logo.png "NetBox logo")
1+
![NetBox](netbox_logo.svg "NetBox logo")
22

33
# What is NetBox?
44

docs/installation/2-netbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This section of the documentation discusses installing and configuring the NetBo
1414
# yum install -y epel-release
1515
# yum install -y gcc python36 python36-devel python36-setuptools libxml2-devel libxslt-devel libffi-devel graphviz openssl-devel redhat-rpm-config redis
1616
# easy_install-3.6 pip
17-
# ln -s /usr/bin/python36 /usr/bin/python3
17+
# ln -s /usr/bin/python3.6 /usr/bin/python3
1818
```
1919

2020
You may opt to install NetBox either from a numbered release or by cloning the master branch of its repository on GitHub.

docs/installation/4-ldap.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ AUTH_LDAP_USER_ATTR_MAP = {
8080
```
8181

8282
# User Groups for Permissions
83+
8384
!!! info
8485
When using Microsoft Active Directory, support for nested groups can be activated by using `NestedGroupOfNamesType()` instead of `GroupOfNamesType()` for `AUTH_LDAP_GROUP_TYPE`. You will also need to modify the import line to use `NestedGroupOfNamesType` instead of `GroupOfNamesType` .
8586

@@ -117,6 +118,9 @@ AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600
117118
* `is_staff` - Users mapped to this group are enabled for access to the administration tools; this is the equivalent of checking the "staff status" box on a manually created user. This doesn't grant any specific permissions.
118119
* `is_superuser` - Users mapped to this group will be granted superuser status. Superusers are implicitly granted all permissions.
119120

121+
!!! warning
122+
Authentication will fail if the groups (the distinguished names) do not exist in the LDAP directory.
123+
120124
# Troubleshooting LDAP
121125

122126
`supervisorctl restart netbox` restarts the Netbox service, and initiates any changes made to `ldap_config.py`. If there are syntax errors present, the NetBox process will not spawn an instance, and errors should be logged to `/var/log/supervisor/`.

docs/netbox_logo.svg

Lines changed: 21 additions & 0 deletions
Loading

docs/release-notes/version-2.6.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# v2.6.10 (2019-01-02)
2+
3+
## Enhancements
4+
5+
* [#2233](https://github.com/netbox-community/netbox/issues/2233) - Add ability to move inventory items between devices
6+
* [#2892](https://github.com/netbox-community/netbox/issues/2892) - Extend admin UI to allow deleting old report results
7+
* [#3062](https://github.com/netbox-community/netbox/issues/3062) - Add `assigned_to_interface` filter for IP addresses
8+
* [#3461](https://github.com/netbox-community/netbox/issues/3461) - Fail gracefully on custom link rendering exception
9+
* [#3705](https://github.com/netbox-community/netbox/issues/3705) - Provide request context when executing custom scripts
10+
* [#3762](https://github.com/netbox-community/netbox/issues/3762) - Add date/time picker widgets
11+
* [#3788](https://github.com/netbox-community/netbox/issues/3788) - Enable partial search for inventory items
12+
* [#3812](https://github.com/netbox-community/netbox/issues/3812) - Optimize size of pages containing a dynamic selection field
13+
* [#3827](https://github.com/netbox-community/netbox/issues/3827) - Allow filtering console/power/interface connections by device ID
14+
15+
## Bug Fixes
16+
17+
* [#3106](https://github.com/netbox-community/netbox/issues/3106) - Restrict queryset of chained fields when form validation fails
18+
* [#3695](https://github.com/netbox-community/netbox/issues/3695) - Include A/Z termination sites for circuits in global search
19+
* [#3712](https://github.com/netbox-community/netbox/issues/3712) - Scrolling to target (hash) did not account for the header size
20+
* [#3780](https://github.com/netbox-community/netbox/issues/3780) - Fix AttributeError exception in API docs
21+
* [#3809](https://github.com/netbox-community/netbox/issues/3809) - Filter platform by manufacturer when editing devices
22+
* [#3811](https://github.com/netbox-community/netbox/issues/3811) - Fix filtering of racks by group on device list
23+
* [#3822](https://github.com/netbox-community/netbox/issues/3822) - Fix exception when editing a device bay (regression from #3596)
24+
25+
---
26+
127
# v2.6.9 (2019-12-16)
228

329
## Enhancements
@@ -13,6 +39,8 @@
1339
* [#3749](https://github.com/netbox-community/netbox/issues/3749) - Fix exception on password change page for local users
1440
* [#3757](https://github.com/netbox-community/netbox/issues/3757) - Fix unable to assign IP to interface
1541

42+
---
43+
1644
# v2.6.8 (2019-12-10)
1745

1846
## Enhancements
@@ -35,6 +63,8 @@
3563
* [#3724](https://github.com/netbox-community/netbox/issues/3724) - Fix API filtering of interfaces by more than one device name
3664
* [#3725](https://github.com/netbox-community/netbox/issues/3725) - Enforce client validation for minimum service port number
3765

66+
---
67+
3868
# v2.6.7 (2019-11-01)
3969

4070
## Enhancements

netbox/circuits/forms.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from tenancy.models import Tenant
88
from utilities.forms import (
99
APISelect, APISelectMultiple, add_blank_choice, BootstrapMixin, CommentField, CSVChoiceField,
10-
FilterChoiceField, SmallTextarea, SlugField, StaticSelect2, StaticSelect2Multiple
10+
DatePicker, FilterChoiceField, SmallTextarea, SlugField, StaticSelect2, StaticSelect2Multiple
1111
)
1212
from .constants import *
1313
from .models import Circuit, CircuitTermination, CircuitType, Provider
@@ -161,7 +161,6 @@ class Meta:
161161
]
162162
help_texts = {
163163
'cid': "Unique circuit ID",
164-
'install_date': "Format: YYYY-MM-DD",
165164
'commit_rate': "Committed rate",
166165
}
167166
widgets = {
@@ -172,7 +171,7 @@ class Meta:
172171
api_url="/api/circuits/circuit-types/"
173172
),
174173
'status': StaticSelect2(),
175-
174+
'install_date': DatePicker(),
176175
}
177176

178177

0 commit comments

Comments
 (0)