Skip to content

Commit c9b79ca

Browse files
Merge pull request #12681 from netbox-community/develop
Release v3.5.2
2 parents 5f184f2 + fbc7811 commit c9b79ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+708
-183
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: NetBox version
1616
description: What version of NetBox are you currently running?
17-
placeholder: v3.5.1
17+
placeholder: v3.5.2
1818
validations:
1919
required: true
2020
- type: dropdown

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: NetBox version
1616
description: What version of NetBox are you currently running?
17-
placeholder: v3.5.1
17+
placeholder: v3.5.2
1818
validations:
1919
required: true
2020
- type: dropdown

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<div align="center">
2-
<img src="https://raw.githubusercontent.com/netbox-community/netbox/develop/docs/netbox_logo.svg" width="400" alt="NetBox logo" />
2+
<strong>The :ballot_box_with_check: <a href="https://forms.gle/zUHrrPo7K34yKaqC9">2023 NetBox Community Survey</a> is now open!</strong>
3+
<p>Please take a few minutes to tell us about your NetBox deployment.</p>
34

4-
The premiere source of truth powering network automation
5+
<img src="https://raw.githubusercontent.com/netbox-community/netbox/develop/docs/netbox_logo.svg" width="400" alt="NetBox logo" />
6+
<p>The premiere source of truth powering network automation</p>
7+
<img src="https://github.com/netbox-community/netbox/workflows/CI/badge.svg?branch=master" alt="CI status" />
8+
<p></p>
59
</div>
610

7-
![Master branch build status](https://github.com/netbox-community/netbox/workflows/CI/badge.svg?branch=master)
8-
911
NetBox is the leading solution for modeling and documenting modern networks. By
1012
combining the traditional disciplines of IP address management (IPAM) and
1113
datacenter infrastructure management (DCIM) with powerful APIs and extensions,

docs/administration/netbox-shell.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,18 @@ New objects can be created by instantiating the desired model, defining values f
153153
```
154154
>>> lab1 = Site.objects.get(pk=7)
155155
>>> myvlan = VLAN(vid=123, name='MyNewVLAN', site=lab1)
156+
>>> myvlan.full_clean()
156157
>>> myvlan.save()
157158
```
158159

159-
Alternatively, the above can be performed as a single operation. (Note, however, that `save()` does _not_ return the new instance for reuse.)
160-
161-
```
162-
>>> VLAN(vid=123, name='MyNewVLAN', site=Site.objects.get(pk=7)).save()
163-
```
164-
165160
To modify an existing object, we retrieve it, update the desired field(s), and call `save()` again.
166161

167162
```
168163
>>> vlan = VLAN.objects.get(pk=1280)
169164
>>> vlan.name
170165
'MyNewVLAN'
171166
>>> vlan.name = 'BetterName'
167+
>>> vlan.full_clean()
172168
>>> vlan.save()
173169
>>> VLAN.objects.get(pk=1280).name
174170
'BetterName'

docs/configuration/miscellaneous.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ This defines custom content to be displayed on the login page above the login fo
2929

3030
---
3131

32+
## BANNER_MAINTENANCE
33+
34+
!!! tip "Dynamic Configuration Parameter"
35+
36+
!!! note
37+
This parameter was added in NetBox v3.5.
38+
39+
This adds a banner to the top of every page when maintenance mode is enabled. HTML is allowed.
40+
41+
---
42+
3243
## BANNER_TOP
3344

3445
!!! tip "Dynamic Configuration Parameter"
@@ -129,7 +140,7 @@ Setting this to True will display a "maintenance mode" banner at the top of ever
129140

130141
Default: `https://maps.google.com/?q=` (Google Maps)
131142

132-
This specifies the URL to use when presenting a map of a physical location by street address or GPS coordinates. The URL must accept either a free-form street address or a comma-separated pair of numeric coordinates appended to it.
143+
This specifies the URL to use when presenting a map of a physical location by street address or GPS coordinates. The URL must accept either a free-form street address or a comma-separated pair of numeric coordinates appended to it. Set this to `None` to disable the "map it" button within the UI.
133144

134145
---
135146

@@ -193,3 +204,25 @@ This parameter defines the URL of the repository that will be checked for new Ne
193204
Default: `300`
194205

195206
The maximum execution time of a background task (such as running a custom script), in seconds.
207+
208+
---
209+
210+
## RQ_RETRY_INTERVAL
211+
212+
!!! note
213+
This parameter was added in NetBox v3.5.
214+
215+
Default: `60`
216+
217+
This parameter controls how frequently a failed job is retried, up to the maximum number of times specified by `RQ_RETRY_MAX`. This must be either an integer specifying the number of seconds to wait between successive attempts, or a list of such values. For example, `[60, 300, 3600]` will retry the task after 1 minute, 5 minutes, and 1 hour.
218+
219+
---
220+
221+
## RQ_RETRY_MAX
222+
223+
!!! note
224+
This parameter was added in NetBox v3.5.
225+
226+
Default: `0` (retries disabled)
227+
228+
The maximum number of times a background task will be retried before being marked as failed.

docs/configuration/remote-authentication.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ The configuration parameters listed here control remote authentication for NetBo
44

55
---
66

7+
## REMOTE_AUTH_AUTO_CREATE_GROUPS
8+
9+
Default: `False`
10+
11+
If true, NetBox will automatically create groups specified in the `REMOTE_AUTH_GROUP_HEADER` header if they don't already exist. (Requires `REMOTE_AUTH_ENABLED`.)
12+
13+
---
14+
715
## REMOTE_AUTH_AUTO_CREATE_USER
816

917
Default: `False`

docs/customization/custom-scripts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ class NewBranchScript(Script):
378378
slug=slugify(data['site_name']),
379379
status=SiteStatusChoices.STATUS_PLANNED
380380
)
381+
site.full_clean()
381382
site.save()
382383
self.log_success(f"Created new site: {site}")
383384

@@ -391,6 +392,7 @@ class NewBranchScript(Script):
391392
status=DeviceStatusChoices.STATUS_PLANNED,
392393
device_role=switch_role
393394
)
395+
switch.full_clean()
394396
switch.save()
395397
self.log_success(f"Created new switch: {switch}")
396398

docs/installation/3-netbox.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Create a system user account named `netbox`. We'll configure the WSGI and HTTP s
100100
```
101101
sudo adduser --system --group netbox
102102
sudo chown --recursive netbox /opt/netbox/netbox/media/
103+
sudo chown --recursive netbox /opt/netbox/netbox/reports/
104+
sudo chown --recursive netbox /opt/netbox/netbox/scripts/
103105
```
104106

105107
=== "CentOS"
@@ -108,6 +110,8 @@ Create a system user account named `netbox`. We'll configure the WSGI and HTTP s
108110
sudo groupadd --system netbox
109111
sudo adduser --system -g netbox netbox
110112
sudo chown --recursive netbox /opt/netbox/netbox/media/
113+
sudo chown --recursive netbox /opt/netbox/netbox/reports/
114+
sudo chown --recursive netbox /opt/netbox/netbox/scripts/
111115
```
112116

113117
## Configuration

docs/installation/6-ldap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sudo apt install -y libldap2-dev libsasl2-dev libssl-dev
1515
On CentOS:
1616

1717
```no-highlight
18-
sudo yum install -y openldap-devel
18+
sudo yum install -y openldap-devel python3-devel
1919
```
2020

2121
### Install django-auth-ldap

docs/integrations/rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Each attribute of the IP address is expressed as an attribute of the JSON object
6363

6464
## Interactive Documentation
6565

66-
Comprehensive, interactive documentation of all REST API endpoints is available on a running NetBox instance at `/api/docs/`. This interface provides a convenient sandbox for researching and experimenting with specific endpoints and request types. The API itself can also be explored using a web browser by navigating to its root at `/api/`.
66+
Comprehensive, interactive documentation of all REST API endpoints is available on a running NetBox instance at `/api/schema/swagger-ui/`. This interface provides a convenient sandbox for researching and experimenting with specific endpoints and request types. The API itself can also be explored using a web browser by navigating to its root at `/api/`.
6767

6868
## Endpoint Hierarchy
6969

0 commit comments

Comments
 (0)