Skip to content

822 bulk import of device components #3711

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

Merged
merged 32 commits into from
Dec 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7f779e3
Hide password change page when user is logged in using LDAP
steffann Nov 3, 2019
99a542e
Closes #3663: API filter by created, last_updated
Nov 4, 2019
a11fa44
Closes #3663: fix inheritance error
Nov 4, 2019
bbd6598
3457 Display cable colors in device interface list
ananace Nov 6, 2019
fb4283e
Move alternative installations to the GitHub wiki
jeremystretch Nov 6, 2019
5eb5c4b
Fixes #3674: Include comments on PowerFeed view
jeremystretch Nov 6, 2019
fbde618
Fixes #3669: Include weight field in prefix/VLAN role form
jeremystretch Nov 6, 2019
053f49c
Merge pull request #3673 from ananace/cable-color-display
jeremystretch Nov 6, 2019
b4433a8
Merge pull request #3667 from steffann/3139-disable-user-password-cha…
jeremystretch Nov 6, 2019
1bc38f6
Changelog entries for #3139 and #3457
jeremystretch Nov 6, 2019
b1761f7
#3139: Add a message indicating why the user is redirected
jeremystretch Nov 6, 2019
099774d
Closes #3663: PEP8 fixes
Nov 7, 2019
0319450
Closes #3663: rename filter class
Nov 7, 2019
1aaa101
Docs: Remove obsolete P3P policy
bbock Nov 8, 2019
cc848a3
Merge pull request #3684 from bbock/docs-remove-p3p
kobayashi Nov 12, 2019
5904f1f
Changelog for #3329
kobayashi Nov 12, 2019
3c8083e
fix url expressions
kobayashi Nov 13, 2019
bdd623f
Merge pull request #3680 from struppinet/develop
jeremystretch Nov 15, 2019
03b8759
'base_name' deprecated in DRF v3.9.0
jeremystretch Nov 15, 2019
bfede60
Rename CreatedUpdatedFilter to CreatedUpdatedFilterSet
jeremystretch Nov 15, 2019
4b415ca
Changelog for #3663
jeremystretch Nov 15, 2019
de986ec
Merge pull request #3687 from kobayashi/3679
jeremystretch Nov 15, 2019
b46e52e
Fixed #3697: Correct field_order attribute name
hSaria Nov 20, 2019
6a451e0
Merge pull request #3701 from hSaria/3697-custom-scripts-example-typo
jeremystretch Nov 22, 2019
ba28507
Implement CSV import for netbox-community#822
steffann Nov 22, 2019
2186c2f
Comment out default_return_url until there is a proper target
steffann Nov 22, 2019
5341111
Fix the default value of `enabled` when not included in the import
steffann Nov 22, 2019
d00f262
rear_port is definitely required here
steffann Nov 22, 2019
26772de
Power Ports don't have a type (yet)
steffann Nov 23, 2019
6d45070
Add import for console-ports and console-server-ports
steffann Nov 23, 2019
ac8df27
Add import for device-bays
steffann Nov 23, 2019
0c86656
Merge branch 'develop-2.7' into 822-bulk-import-of-device-components
jeremystretch Dec 5, 2019
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
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ Please see [the documentation](http://netbox.readthedocs.io/en/stable/) for
instructions on installing NetBox. To upgrade NetBox, please download the [latest release](https://github.com/netbox-community/netbox/releases)
and run `upgrade.sh`.

## Alternative Installations

* [Docker container](https://github.com/netbox-community/netbox-docker) (via [@cimnine](https://github.com/cimnine))
* [Vagrant deployment](https://github.com/ryanmerolle/netbox-vagrant) (via [@ryanmerolle](https://github.com/ryanmerolle))
* [Ansible deployment](https://github.com/lae/ansible-role-netbox) (via [@lae](https://github.com/lae))
* [Kubernetes deployment](https://github.com/CENGN/netbox-kubernetes) (via [@CENGN](https://github.com/CENGN))

# Providing Feedback

Feature requests and bug reports must be submitted as GiHub issues. (Please be
Expand Down
2 changes: 1 addition & 1 deletion docs/additional-features/custom-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class NewBranchScript(Script):
class Meta:
name = "New Branch"
description = "Provision a new branch site"
fields = ['site_name', 'switch_count', 'switch_model']
field_order = ['site_name', 'switch_count', 'switch_model']

site_name = StringVar(
description="Name of the new site"
Expand Down
1 change: 0 additions & 1 deletion docs/installation/3-http-daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ server {
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
}
}
```
Expand Down
15 changes: 15 additions & 0 deletions docs/release-notes/version-2.6.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# v2.6.8 (FUTURE)

## Enhancements

* [#3139](https://github.com/netbox-community/netbox/issues/3139) - Disable password change form for LDAP-authenticated users
* [#3457](https://github.com/netbox-community/netbox/issues/3457) - Display cable colors on device view
* [#3329](https://github.com/netbox-community/netbox/issues/3329) - Remove obsolete P3P policy header
* [#3663](https://github.com/netbox-community/netbox/issues/3663) - Add query filters for `created` and `last_updated` fields

## Bug Fixes

* [#3669](https://github.com/netbox-community/netbox/issues/3669) - Include `weight` field in prefix/VLAN role form
* [#3674](https://github.com/netbox-community/netbox/issues/3674) - Include comments on PowerFeed view
* [#3679](https://github.com/netbox-community/netbox/issues/3679) - Fix link for assigned ipaddress in interface page

# v2.6.7 (2019-11-01)

## Enhancements
Expand Down
6 changes: 3 additions & 3 deletions netbox/circuits/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
from django.db.models import Q

from dcim.models import Region, Site
from extras.filters import CustomFieldFilterSet
from extras.filters import CustomFieldFilterSet, CreatedUpdatedFilterSet
from tenancy.filtersets import TenancyFilterSet
from utilities.filters import NameSlugSearchFilterSet, NumericInFilter, TagFilter, TreeNodeMultipleChoiceFilter
from .constants import *
from .models import Circuit, CircuitTermination, CircuitType, Provider


class ProviderFilter(CustomFieldFilterSet):
class ProviderFilter(CustomFieldFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down Expand Up @@ -54,7 +54,7 @@ class Meta:
fields = ['id', 'name', 'slug']


class CircuitFilter(CustomFieldFilterSet, TenancyFilterSet):
class CircuitFilter(CustomFieldFilterSet, TenancyFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down
12 changes: 6 additions & 6 deletions netbox/dcim/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.contrib.auth.models import User
from django.db.models import Q

from extras.filters import CustomFieldFilterSet, LocalConfigContextFilter
from extras.filters import CustomFieldFilterSet, LocalConfigContextFilter, CreatedUpdatedFilterSet
from tenancy.filtersets import TenancyFilterSet
from tenancy.models import Tenant
from utilities.constants import COLOR_CHOICES
Expand Down Expand Up @@ -39,7 +39,7 @@ class Meta:
fields = ['id', 'name', 'slug']


class SiteFilter(TenancyFilterSet, CustomFieldFilterSet):
class SiteFilter(TenancyFilterSet, CustomFieldFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down Expand Up @@ -117,7 +117,7 @@ class Meta:
fields = ['id', 'name', 'slug', 'color']


class RackFilter(TenancyFilterSet, CustomFieldFilterSet):
class RackFilter(TenancyFilterSet, CustomFieldFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down Expand Up @@ -252,7 +252,7 @@ class Meta:
fields = ['id', 'name', 'slug']


class DeviceTypeFilter(CustomFieldFilterSet):
class DeviceTypeFilter(CustomFieldFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down Expand Up @@ -424,7 +424,7 @@ class Meta:
fields = ['id', 'name', 'slug', 'napalm_driver']


class DeviceFilter(LocalConfigContextFilter, TenancyFilterSet, CustomFieldFilterSet):
class DeviceFilter(LocalConfigContextFilter, TenancyFilterSet, CustomFieldFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down Expand Up @@ -1113,7 +1113,7 @@ def search(self, queryset, name, value):
return queryset.filter(qs_filter)


class PowerFeedFilter(CustomFieldFilterSet):
class PowerFeedFilter(CustomFieldFilterSet, CreatedUpdatedFilterSet):
id__in = NumericInFilter(
field_name='id',
lookup_expr='in'
Expand Down
Loading