Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
575 commits
Select commit Hold shift + click to select a range
4a5c377
Fix PackageFilter
Jan 28, 2019
560bea1
CI green please
Jan 28, 2019
285a183
NETOPS-1653 NETOPS-1654 Add QA status to Devices and Circuits
Jan 28, 2019
ff40a13
fixed select2 paging offset calculation to index at 1
lampwins Jan 29, 2019
afb4c63
Fix #2802 (#2803)
ChrisPortman Jan 29, 2019
8977ded
Changelog for #2802
jeremystretch Jan 29, 2019
b4c9ec2
Updated optional-settings.md - Webhook links (#2818)
fouram Jan 29, 2019
ce1a287
Closes #2808: Loosen version pinning for Django to allow patch releases
jeremystretch Jan 29, 2019
dc70fdb
Force string formatting of integer values
jeremystretch Jan 29, 2019
0256448
Closes #2810: Include description fields in interface connections export
jeremystretch Jan 29, 2019
8bd9b25
Fixes #2816: Handle exception when deleting a device with connected c…
jeremystretch Jan 29, 2019
f6d18d2
Release v2.5.4
jeremystretch Jan 29, 2019
6726403
Merge pull request #2821 from digitalocean/develop
jeremystretch Jan 29, 2019
170900e
Fixes #2824: Fix template exception when viewing rack elevations list
jeremystretch Jan 30, 2019
e51e8b5
Updated link after the move of `netbox-docker`
cimnine Jan 30, 2019
fe30276
Merge pull request #2828 from cimnine/patch-1
jeremystretch Jan 30, 2019
5138d12
Typo (#2822)
TheTrafficNetwork Jan 30, 2019
0eced48
Updated link to netbox-docker, again
cimnine Jan 31, 2019
51e5e49
Merge pull request #2832 from cimnine/patch-1
lampwins Jan 31, 2019
a98d014
Post-release version bump
jeremystretch Jan 31, 2019
b508415
Fixes #2833: Fix form widget for front port template creation
jeremystretch Jan 31, 2019
ae0c8de
Closes #2809: Remove VRF child prefixes table; link to main prefixes …
jeremystretch Jan 31, 2019
59f8f0c
Closes #2825: Include directly connected device for front/rear ports
jeremystretch Jan 31, 2019
613e8f0
fixes #2835 - certain model filters did not support the q query param
lampwins Jan 31, 2019
bcfa760
Closes #2805: Allow null route distinguisher for VRFs
jeremystretch Jan 31, 2019
fe00db6
fixes #2837 - select2 nullable filter fields add multiple null_option…
lampwins Jan 31, 2019
525ed35
Release v2.5.5
jeremystretch Jan 31, 2019
d5fc372
Merge pull request #2838 from digitalocean/develop
jeremystretch Jan 31, 2019
2f1018c
Post-release version bump
jeremystretch Jan 31, 2019
69a5d36
Closes #2844: Correct display of far cable end for pass-through ports
jeremystretch Feb 1, 2019
3d2948d
Merge pull request #2793 from candlerb/candlerb/doc-inventory
jeremystretch Feb 6, 2019
f733d5a
Fixes #2857: Add display_name to DeviceType API serializer; fix Devic…
jeremystretch Feb 6, 2019
73c9835
Fixes #2856: Fix navigation links between LAG interfaces and their me…
jeremystretch Feb 6, 2019
ca51fab
Fixes #2845: Enable filtering of rack unit list by unit ID
jeremystretch Feb 6, 2019
42d1d6e
Fixes #2841: Fix filtering by VRF for prefix and IP address lists
jeremystretch Feb 6, 2019
375e660
Fixes #2864: Correct display of VRF name when no RD is assigned
jeremystretch Feb 8, 2019
5256077
Fixes #2862: Follow return URL when connecting a cable
jeremystretch Feb 8, 2019
100809f
Closes #2854: Enable bulk editing of pass-through ports
jeremystretch Feb 8, 2019
5da9d6b
Closes #2839: Add "110 punch" type for pass-through ports
jeremystretch Feb 8, 2019
8d86e97
Clarify use of "runreport" CLI
candlerb Feb 13, 2019
dfa4dfa
Fixes #2877: Fixed device role label display on light background color
jeremystretch Feb 13, 2019
3b4bcc8
Fix broken test
jeremystretch Feb 13, 2019
57fecdb
Closes #2851: Include circuit provider in pass-through port connectio…
jeremystretch Feb 13, 2019
95dea1f
Closes #2866: Add cellular interface types (GSM/CDMA/LTE)
jeremystretch Feb 13, 2019
cc3b269
Fixes #2880: Sanitize user password if an exception is raised during …
jeremystretch Feb 13, 2019
109b233
Closes #2758: Add cable trace button to pass-through ports
jeremystretch Feb 13, 2019
8152dc4
Release v2.5.6
jeremystretch Feb 13, 2019
77954a3
Merge pull request #2886 from digitalocean/develop
jeremystretch Feb 13, 2019
d084d19
Post-release version bump
jeremystretch Feb 13, 2019
0e8c3a8
Render correct foreground colour for rack devices
stuntguy3000 Feb 14, 2019
1ee6d16
add port type LC/APC, SC/APC, LSH/APC
gdelafond Feb 14, 2019
3161120
ipaddress.vrf already includes ipaddress.vrf.rd
MarcHagen Feb 14, 2019
2a1630e
Merge pull request #2894 from TakeMeNL/bug/duplicate-vrf
jeremystretch Feb 14, 2019
008138c
Merge pull request #2889 from stuntguy3000/patch-1
jeremystretch Feb 14, 2019
d95b127
Changelog for #2888 and #2893
jeremystretch Feb 14, 2019
fdbef8e
Closes #2836: Deprecate NullableCharField
jeremystretch Feb 14, 2019
7a0ab3a
Fixes #2895: Fix filtering of nullable character fields
jeremystretch Feb 14, 2019
3bc182e
Fixes #2901: Fix ordering regions by site count
jeremystretch Feb 15, 2019
8797298
Fixes #2884: Don't display connect button for wireless interfaces
jeremystretch Feb 15, 2019
a9d7a7e
Closes #2903: Clarify purpose of tags field on interface edit form
jeremystretch Feb 15, 2019
971f3cd
Closes #2357: Enable filtering of devices by rack face
jeremystretch Feb 15, 2019
8e3ea6c
Closes #2878: Add cable types for OS1/OS2 singlemode fiber
jeremystretch Feb 15, 2019
9d69f14
Implement basic view testing for all models (#2909)
jeremystretch Feb 15, 2019
9d055ff
fixed #2910 - config context list and edit views not using select2
lampwins Feb 19, 2019
40cb478
Fixes #2914: Fix empty connected circuit link on device interfaces list
jeremystretch Feb 20, 2019
fadc952
Fixes #2913: Fix assigned prefixes link on VRF view
jeremystretch Feb 20, 2019
161d9ed
Fixes #2912: Cable type in filter form should be blank by default
jeremystretch Feb 20, 2019
c8366ef
Fixes #2915: Fix bulk editing of pass-through ports
jeremystretch Feb 20, 2019
fba1543
Closes #2898: Enable filtering cables list by connection status
jeremystretch Feb 20, 2019
b9f1d14
Closes #2870: Add Markdown rendering for provider NOC/admin contact f…
jeremystretch Feb 20, 2019
2184a94
Merge pull request #2891 from gdelafond/add-port-types
jeremystretch Feb 20, 2019
8961a54
Chnagelog for #2890
jeremystretch Feb 20, 2019
4c3a7b8
Merge pull request #2881 from candlerb/candlerb/doc-reports
jeremystretch Feb 20, 2019
993e94c
Fixes #2852: Allow filtering devices by null rack position
jeremystretch Feb 21, 2019
298152b
Closes #2638: Copy Button for Secrets (#2860)
hSaria Feb 21, 2019
08dad7f
Changelog for #2638
jeremystretch Feb 21, 2019
36101f5
Release v2.5.7
jeremystretch Feb 21, 2019
ac1e4b8
Merge pull request #2922 from digitalocean/develop
jeremystretch Feb 21, 2019
77c387a
Post-release version bump
jeremystretch Feb 21, 2019
3ffea43
Fixes #2923: Changes Site Filter on Provider List to APISelectMultiple
DanSheps Feb 22, 2019
d707844
Merge pull request #2928 from DanSheps/2923-changecircuitsitefiltermulti
jeremystretch Feb 22, 2019
8dfef83
Changelog for #2923
jeremystretch Feb 22, 2019
f78c228
Fixes #2813: Add Filter for TenantGroup to the following Forms and Fi…
DanSheps Feb 23, 2019
8683efe
Fixes #2813: Add Filter and List View for TenantGroup
DanSheps Feb 23, 2019
679aa0f
Update tables.py
DanSheps Feb 26, 2019
beff774
Fixes #2705: Fix endpoint grouping in API docs
jeremystretch Feb 26, 2019
f2471ae
Fixes #2781: Fixes filter by regions on site and device list
DanSheps Feb 27, 2019
00aaf50
Fixes #2781: Fixes filter by regions on site and device list
DanSheps Feb 27, 2019
32f63a1
Fixes #2938: Enforce deterministic ordering of device components retu…
jeremystretch Feb 28, 2019
3e6033e
Fixes #2938: Exclude circuit terminations from API interface connecti…
jeremystretch Feb 28, 2019
6f5c35c
Force resolution of request User object when logging an object deleti…
jeremystretch Feb 28, 2019
b381bde
fixes #2952 - slug field absent from TenantFilter
lampwins Mar 3, 2019
4d18d96
Remove trailing slashes from filesystem paths
axnsan12 Mar 4, 2019
3a62e9a
Resolve drf-yasg `ref_name` conflicts
axnsan12 Mar 4, 2019
e97ad3f
Merge pull request #2935 from DanSheps/2781-fixsitelistfilterregion
jeremystretch Mar 4, 2019
78725b8
Follow-up from #2781
jeremystretch Mar 4, 2019
7295c35
Merge pull request #2955 from axnsan12/trailing-slashes
jeremystretch Mar 4, 2019
0c142f2
Changelog for #2954
jeremystretch Mar 4, 2019
b4d7f9e
Fixes #2781: Fixes filter by regions on site and device list
DanSheps Mar 5, 2019
5fcd673
Merge remote-tracking branch 'dansheps/2813-addtenantgroupfilter' int…
DanSheps Mar 5, 2019
3bb1cbc
* Resolve conflict with virtualization filters.
DanSheps Mar 5, 2019
37811d3
* Resolve conflict with virtualization filters.
DanSheps Mar 5, 2019
bd65e78
Allow nullable length unit in cable API
Mar 5, 2019
cfb56f7
Fixes #2962: Increase ExportTemplate mime_type field length
jeremystretch Mar 5, 2019
6406e21
Fixes #2961: Prevent exception when exporting inventory items belongi…
jeremystretch Mar 5, 2019
0572c66
Merge pull request #2967 from Anthony25/fix_cable_length_unit_api
jeremystretch Mar 5, 2019
7294f43
Changelog for #2966
jeremystretch Mar 5, 2019
c208d8f
* Added CSS to:
DanSheps Mar 5, 2019
e9546b8
* Updated changelog
DanSheps Mar 5, 2019
88aeaaf
Remove .noprint from outside of the @media tag
DanSheps Mar 6, 2019
8df169b
Remove .noprint from outside of the @media tag
DanSheps Mar 6, 2019
f2382dd
Merge pull request #2969 from DanSheps/2435-PrintingCSS
jeremystretch Mar 6, 2019
f35b4bf
Fixes #2976: Add delete button to tag view
jeremystretch Mar 6, 2019
ab02f26
Fixes #2972: Improve ContentTypeField serializer to elegantly handle …
jeremystretch Mar 6, 2019
1d904b1
Fix IP address is not recorded in the associated interface's changelog
MarcHagen Mar 7, 2019
ef089d3
Merge pull request #2957 from axnsan12/ref-name
jeremystretch Mar 7, 2019
1995091
Changelog & renaming for #2065
jeremystretch Mar 7, 2019
4334f1b
Merge pull request #2979 from TakeMeNL/fix/2944
jeremystretch Mar 7, 2019
7a8fc8d
Changelog for #2944
jeremystretch Mar 7, 2019
bd8b239
Fixes #2980: Improve rendering time for API docs
jeremystretch Mar 8, 2019
ea11e70
Fixes #2984: Fix logging of unlabeled cable ID on cable deletion
jeremystretch Mar 11, 2019
f4b8575
Fixes #2940: Allow CSV import of prefixes/IPs to VRF without an RD as…
jeremystretch Mar 11, 2019
7e70bfa
Fixes #2985: Fix pagination page length for rack elevations
jeremystretch Mar 11, 2019
e05871b
Fixes #2982: Correct CSS class assignment on color picker
jeremystretch Mar 11, 2019
88933a3
Release v2.5.8
jeremystretch Mar 11, 2019
d112b60
Merge pull request #2990 from digitalocean/develop
jeremystretch Mar 11, 2019
28331df
Post-release version bump
jeremystretch Mar 11, 2019
332487e
API Filtering Documentation Changes
DanSheps Mar 11, 2019
0022a5a
Merge pull request #2992 from DanSheps/api-documentation-filtering
DanSheps Mar 11, 2019
61efe61
Fixes #2207
DanSheps Mar 12, 2019
9292534
Changelog Updates
DanSheps Mar 12, 2019
520af82
Closes #2924: Add interface type for QSFP28 50GE
jeremystretch Mar 13, 2019
aab84ba
Change ID to PK
DanSheps Mar 13, 2019
dd7249d
Merge pull request #2996 from DanSheps/2207-fix_deterministic_orderin…
jeremystretch Mar 13, 2019
7edad4e
Add support for configuring use of an SSL connection to Redis.
ajknv Mar 15, 2019
1bf04f2
fixes #2936 - device role selection showing duplicate first entry
lampwins Mar 17, 2019
5f40be4
Changes vm_role from "true" to "True" in virtualization form
DanSheps Mar 18, 2019
f88099e
Add documentation for new Redis SSL configuration parameter.
ajknv Mar 18, 2019
e544705
Add support for configuring use of an SSL connection to Redis.
ajknv Mar 15, 2019
8bda6be
Merge branch 'develop' of https://github.com/ajknv/netbox into develop
ajknv Mar 18, 2019
044f739
Closes #2995: Added powerbox to community SDK list
jeremystretch Mar 19, 2019
f6345b9
Fixes #2998: Limit device query to non-racked devices if no rack sele…
jeremystretch Mar 19, 2019
6ba3d61
Merge pull request #3015 from DanSheps/3014-fix-vm-roles
jeremystretch Mar 19, 2019
3cea923
Merge pull request #3012 from ajknv/develop
jeremystretch Mar 19, 2019
7d1ee2e
Changelog for #3011
jeremystretch Mar 19, 2019
fc76c8e
FieldChoicesViewSet should infer field choices from serializer, not m…
jeremystretch Mar 22, 2019
3acc8ca
Fixes #3022: Add missing cable termination types to DCIM _choices end…
jeremystretch Mar 22, 2019
2170eed
implements #2933 - username in webhooks
lampwins Mar 24, 2019
2e1887e
implements #3025 - Add request ID to outbound webhook requests
lampwins Mar 24, 2019
3f5f75c
Fixes #3001: Fix API representation of ObjectChange action and add ch…
jeremystretch Mar 28, 2019
dff3165
Fixes #3026: Tweak prefix/IP filter forms to filter using VRF ID rath…
jeremystretch Mar 28, 2019
498f132
Fixes #3027: Ignore empty local context data when rendering config co…
jeremystretch Mar 28, 2019
110387e
Fixes #3019: Fix tag population when running NetBox within a path
jeremystretch Apr 2, 2019
d23ca04
Ensure fallback to default serializer when attempting to load nested …
jeremystretch Apr 2, 2019
3602d5a
Fixes #3032: Save assigned tags when creating a new secret
jeremystretch Apr 2, 2019
738a20a
Release v2.5.9
jeremystretch Apr 2, 2019
fdf1689
Merge pull request #3034 from digitalocean/develop
jeremystretch Apr 2, 2019
7c6d2a6
Post-release version bump
jeremystretch Apr 2, 2019
1e160fd
Fixes #3041: Fix form widget for bulk cable label update
jeremystretch Apr 4, 2019
858be6d
Fixes #3039: Fix exception when retrieving change object for a compon…
jeremystretch Apr 4, 2019
74c03e3
Fixes #3036: DCIM interfaces API endpoint should not include VM inter…
jeremystretch Apr 4, 2019
090efde
Fixes #3044: Ignore site/rack fields when connecting a new cable via …
jeremystretch Apr 4, 2019
1b389d6
Fixes #3046: Fix exception at reports API endpoint
jeremystretch Apr 4, 2019
e556c78
Fixes #3047: Fix exception string for invalid MAC Address format
DanSheps Apr 5, 2019
c032413
Remove unneeded import from testing.
DanSheps Apr 5, 2019
7f6d793
Fix virtualization test and add to changelog
DanSheps Apr 5, 2019
6f8591f
Closes #3052: Add Jinja2 support for export templates
jeremystretch Apr 8, 2019
9a91bdb
Fixes #2937: Redirect to list view after editing an object from list …
jeremystretch Apr 8, 2019
a8d20e1
Release v2.5.10
jeremystretch Apr 8, 2019
f3fffc6
Merge pull request #3053 from digitalocean/develop
jeremystretch Apr 8, 2019
8d79353
Post-release version bump
jeremystretch Apr 8, 2019
a91a796
Merge branch 'develop' of https://github.com/digitalocean/netbox into…
DanSheps Apr 9, 2019
6e8e680
Move Filter and Form to new file, update all files
DanSheps Apr 10, 2019
6fa54be
Fix PEP8 Errors
DanSheps Apr 10, 2019
a5e1088
fixes #2621 - deletion issue in the changelog middleware
lampwins Apr 18, 2019
8b75969
fix typo in requirements
lampwins Apr 18, 2019
f4aec1e
Change VLAN view columns to a 4/8 split
jeremystretch Apr 22, 2019
f463653
Add the decommissioning status for devices
robclerc Apr 24, 2019
19d2850
Fixes #3112: Fix ordering of interface connections list by terminatio…
jeremystretch Apr 26, 2019
d8c9b1a
Fixes #3116: Fix tagged_items count in tags API endpoint
jeremystretch Apr 26, 2019
bd4086c
Merge pull request #3103 from clercrobin/add_decommissioning
jeremystretch Apr 26, 2019
ca56871
Changelog & CSS fix for #3070
jeremystretch Apr 26, 2019
245a971
Closes #2986: Replace DeviceComponentManager with NaturalOrderingManager
jeremystretch Apr 27, 2019
6d778f6
Closes #3023: Add support for filtering cables by connected device
jeremystretch Apr 29, 2019
3562b55
Fixes #3118: Disable last_login update on login when maintenance mode…
jeremystretch Apr 29, 2019
39fceeb
Add device field on cable search form (#3023)
jeremystretch Apr 29, 2019
1491222
Fixes #3072: Preserve multiselect filter values when updating per-pag…
jeremystretch Apr 29, 2019
92c227d
Release v2.5.11
jeremystretch Apr 29, 2019
9717c6f
Add a note about Django 2.2
jeremystretch Apr 29, 2019
2b93510
Merge pull request #3121 from digitalocean/develop
jeremystretch Apr 29, 2019
d5dcb77
Post-release version bump
jeremystretch Apr 29, 2019
66f90f4
Fix mkdocs
jeremystretch Apr 29, 2019
b7a5afa
Revert previous change
jeremystretch Apr 29, 2019
7b5c196
Fix broken link
jeremystretch Apr 29, 2019
63b71d4
Merge branch 'develop' of https://github.com/digitalocean/netbox into…
DanSheps Apr 30, 2019
22e5834
Remove tenant group from ipam table
DanSheps Apr 30, 2019
5a8ba15
Fixes #3127: Fix natural ordering of device components
jeremystretch Apr 30, 2019
5487ab4
Release v2.5.12
jeremystretch May 1, 2019
49446ff
Post-release version bump
jeremystretch May 1, 2019
ceeac9b
Merge pull request #3131 from digitalocean/develop
jeremystretch May 1, 2019
ee4a3bc
Add circuittermination as a choice for cable endpoint types, which is…
shanemadden May 1, 2019
d50acb3
Merge pull request #3133 from shanemadden/cable_circuit_endpoint_choice
jeremystretch May 2, 2019
5f5e4ce
Changelog for #3132
jeremystretch May 2, 2019
01c5d9e
upgrade.sh: make sure we are in the right directory
austin987 May 2, 2019
eb41bc6
Merge pull request #3142 from austin987/upgrade-cwd
jeremystretch May 2, 2019
244c07e
Closes #3085: Catch all exceptions during export template rendering
jeremystretch May 2, 2019
1b86204
Formatting of cable length in cable trace
tb-killa May 6, 2019
b973390
Update CHANGELOG.md
DanSheps May 6, 2019
dfd4a71
Merge pull request #3158 from tb-killa/3150
DanSheps May 6, 2019
cedec13
Merge tag 'v2.5.12' into feature/v2.5.3
May 8, 2019
e38bfdd
Fix migrations
May 8, 2019
7895ccf
Merge pull request #2931 from DanSheps/2813-addtenantgroupfilter
jeremystretch May 9, 2019
fbde628
Cleanup from #2931
jeremystretch May 9, 2019
e19feb9
Move TenancyFilterForm to tenancy.forms
jeremystretch May 9, 2019
62d497d
Closes #3186: Add interface name filter for IP addresses
jeremystretch May 14, 2019
2f32488
Fixes #3190: Fix custom field rendering for Jinja2 export templates
jeremystretch May 16, 2019
9b47e57
Closes #3183: Enable bulk deletion of sites
jeremystretch May 17, 2019
edabc8e
Closes #3138: Add 2.5GE and 5GE interface form factors
jeremystretch May 17, 2019
cbace6f
Fixes #3031: Select2 creates multiple tags for tags with spaces
May 18, 2019
4313a71
Add grey border around color-block
candlerb May 20, 2019
f9cd89a
urls: fix 3168 by changing url to path
hellerve May 26, 2019
b114b9d
utilities: add converters module and use for json/yaml url
hellerve May 26, 2019
38d5a8f
Merge pull request #3199 from candlerb/candlerb/3184
jeremystretch May 27, 2019
473dafc
Changelog for #3184
jeremystretch May 27, 2019
1366730
netbox urls: move to re_path as suggested by @jeremystretch
hellerve May 27, 2019
cc87d99
all: fix error message on trying to delete protected models (referenc…
hellerve May 28, 2019
87f5dd0
Fixes #3223: Fix filtering devices by "has power outlets"
jeremystretch May 28, 2019
99a3a21
Merge pull request #3216 from hellerve/fix-3168
jeremystretch May 28, 2019
c4f481d
Bump DRF to 3.9.1 to address WS-2019-0037
jeremystretch May 28, 2019
2c7bad9
utilities: move protectederror handling to modelviewset
hellerve May 28, 2019
1ff7e11
Closes #3156: Add site link to rack reservations overview
MarcHagen May 17, 2019
00ffa35
Merge pull request #3197 from KhaledTo/bug/3031
jeremystretch May 29, 2019
8b00513
Changelog for #3031
jeremystretch May 29, 2019
5639fc9
Merge pull request #3195 from TakeMeNL/feature/3156
jeremystretch May 29, 2019
a7ca49c
Merge pull request #3222 from hellerve/tmp
jeremystretch May 29, 2019
28facca
Changelog & grammar tweak for #3211
jeremystretch May 29, 2019
0804c1a
Fixed test from #3211 follow-up work
jeremystretch May 29, 2019
823257c
Closes #3185: Improve performance for custom field access within temp…
jeremystretch May 29, 2019
a6ff650
Closes #3151: Add inventory item count to manufacturers list
jeremystretch May 29, 2019
b9b009c
Fixes #3227: Fix exception when deleting a circuit with a termination(s)
jeremystretch May 29, 2019
1e1aba7
Remove request.user assertion from ObjectChangeMiddleware
jeremystretch May 30, 2019
7d053f8
Fix #3228 - Send full path info instead of just path info and urlenco…
DanSheps May 30, 2019
a11b33d
Fix #3228 - Send full path info instead of just path info and urlenco…
DanSheps May 30, 2019
1958c0b
Merge remote-tracking branch 'origin/develop' into develop
DanSheps May 30, 2019
814c50f
Fix #3228 - UrlEncode full path for next if not on logon page
DanSheps May 30, 2019
893e327
Release v2.5.13
jeremystretch May 31, 2019
1a97a1c
Merge pull request #3230 from digitalocean/develop
jeremystretch May 31, 2019
421fd3a
Merge tag 'v2.5.13' into feature/v2.5.3
Jul 4, 2019
b5f42d9
Use path instead of url
Jul 4, 2019
8280a0b
Fix CI
Jul 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 10 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ about: Report a reproducible bug in the current release of NetBox
-->
### Environment
* Python version: <!-- Example: 3.5.4 -->
* NetBox version: <!-- Example: 2.3.6 -->
* NetBox version: <!-- Example: 2.5.2 -->

<!--
Describe in detail the steps that someone else can take to reproduce this
bug using the current stable release of NetBox (or the current beta release
where applicable).
Describe in detail the exact steps that someone else can take to reproduce
this bug using the current stable release of NetBox (or the current beta
release where applicable). Begin with the creation of any necessary
database objects and call out every operation being performed explicitly.
If reporting a bug in the REST API, be sure to reconstruct the raw HTTP
request(s) being made: Don't rely on a wrapper like pynetbox.
-->
### Steps to Reproduce

1.
2.
3.

<!-- What did you expect to happen? -->
### Expected Behavior
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
fabfile.py
*.swp
gunicorn_config.py
.DS_Store
.vscode
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ addons:
postgresql: "9.4"
language: python
python:
- "2.7"
- "3.5"
install:
- pip install -r requirements.txt
Expand Down
3,866 changes: 2,118 additions & 1,748 deletions CHANGELOG.md

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ or join us in the #netbox Slack channel on [NetworkToCode](https://networktocode

### Build Status

NetBox is built against both Python 2.7 and 3.5. Python 3.5 or higher is strongly recommended.

| | status |
|-------------|------------|
| **master** | [![Build Status](https://travis-ci.org/digitalocean/netbox.svg?branch=master)](https://travis-ci.org/digitalocean/netbox) |
Expand All @@ -39,21 +37,21 @@ and run `upgrade.sh`.

## Alternative Installations

* [Docker container](https://github.com/ninech/netbox-docker) (via [@cimnine](https://github.com/cimnine))
* [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))

# Related projects

## Supported SDK

- [pynetbox](https://github.com/digitalocean/pynetbox) Python API client library for Netbox.
- [pynetbox](https://github.com/digitalocean/pynetbox) - A Python API client library for Netbox

## Community SDK

- [netbox-client-ruby](https://github.com/ninech/netbox-client-ruby) A ruby client library for Netbox v2.
- [netbox-client-ruby](https://github.com/ninech/netbox-client-ruby) - A Ruby client library for Netbox
- [powerbox](https://github.com/BatmanAMA/powerbox) - A PowerShell library for Netbox

## Ansible Inventory

- [netbox-as-ansible-inventory](https://github.com/AAbouZaid/netbox-as-ansible-inventory) Ansible dynamic inventory script for Netbox.

- [netbox-as-ansible-inventory](https://github.com/AAbouZaid/netbox-as-ansible-inventory) - Ansible dynamic inventory script for Netbox
69 changes: 58 additions & 11 deletions base_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,72 @@
# django-filter-1.1.0 breaks with Django-2.1
Django>=1.11,<2.1
# The Python web framework on which NetBox is built
# https://github.com/django/django
Django

# Django middleware which permits cross-domain API requests
# https://github.com/OttoYiu/django-cors-headers
django-cors-headers

# Runtime UI tool for debugging Django
# https://github.com/jazzband/django-debug-toolbar
django-debug-toolbar
# django-filter-2.0.0 drops Python 2 support (blocked by #2000)
django-filter==1.1.0

# Library for writing reusable URL query filters
# https://github.com/carltongibson/django-filter
django-filter

# Modified Preorder Tree Traversal (recursive nesting of objects)
# https://github.com/django-mptt/django-mptt
django-mptt

# Abstraction models for rendering and paginating HTML tables
# https://github.com/jieter/django-tables2
django-tables2

# User-defined tags for objects
# https://github.com/alex/django-taggit
django-taggit

# A Django REST Framework serializer which represents tags
# https://github.com/glemmaPaul/django-taggit-serializer
django-taggit-serializer

# A Django field for representing time zones
# https://github.com/mfogel/django-timezone-field/
django-timezone-field
# https://github.com/encode/django-rest-framework/issues/6053
djangorestframework==3.8.1

# A REST API framework for Django projects
# https://github.com/encode/django-rest-framework
djangorestframework

# Swagger/OpenAPI schema generation for REST APIs
# https://github.com/axnsan12/drf-yasg
drf-yasg[validation]

# Python interface to the graphviz graph rendering utility
# https://github.com/xflr6/graphviz
graphviz
Markdown
natsort
ncclient

# Simple markup language for rendering HTML
# https://github.com/Python-Markdown/markdown
# py-gfm requires Markdown<3.0
Markdown<3.0

# Library for manipulating IP prefixes and addresses
# https://github.com/drkjam/netaddr
netaddr
paramiko

# Fork of PIL (Python Imaging Library) for image processing
# https://github.com/python-pillow/Pillow
Pillow

# PostgreSQL database adapter for Python
# https://github.com/psycopg/psycopg2
psycopg2-binary

# GitHub-flavored Markdown extensions
# https://github.com/zopieux/py-gfm
py-gfm

# Extensive cryptographic library (fork of pycrypto)
# https://github.com/Legrandin/pycryptodome
pycryptodome
xmltodict
6 changes: 3 additions & 3 deletions docs/additional-features/reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DeviceConnectionsReport(Report):

# Check that every console port for every active device has a connection defined.
for console_port in ConsolePort.objects.select_related('device').filter(device__status=DEVICE_STATUS_ACTIVE):
if console_port.cs_port is None:
if console_port.connected_endpoint is None:
self.log_failure(
console_port.device,
"No console connection defined for {}".format(console_port.name)
Expand All @@ -63,7 +63,7 @@ class DeviceConnectionsReport(Report):
for device in Device.objects.filter(status=DEVICE_STATUS_ACTIVE):
connected_ports = 0
for power_port in PowerPort.objects.filter(device=device):
if power_port.power_outlet is not None:
if power_port.connected_endpoint is not None:
connected_ports += 1
if power_port.connection_status == CONNECTION_STATUS_PLANNED:
self.log_warning(
Expand Down Expand Up @@ -128,4 +128,4 @@ Reports can be run on the CLI by invoking the management command:
python3 manage.py runreport <module>
```

One or more report modules may be specified.
where ``<module>`` is the name of the python file in the ``reports`` directory without the ``.py`` extension. One or more report modules may be specified.
2 changes: 1 addition & 1 deletion docs/additional-features/tags.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tags

Tags are free-form text labels which can be applied to a variety of objects within NetBox. Tags are created on-demand as they are assigned to objects. Use commas to separate tags when adding multiple tags to an object 9for example: `Inventoried, Monitored`). Use double quotes around a multi-word tag when adding only one tag, e.g. `"Core Switch"`.
Tags are free-form text labels which can be applied to a variety of objects within NetBox. Tags are created on-demand as they are assigned to objects. Use commas to separate tags when adding multiple tags to an object (for example: `Inventoried, Monitored`). Use double quotes around a multi-word tag when adding only one tag, e.g. `"Core Switch"`.

Each tag has a label and a URL-friendly slug. For example, the slug for a tag named "Dunder Mifflin, Inc." would be `dunder-mifflin-inc`. The slug is generated automatically and makes tags easier to work with as URL parameters.

Expand Down
2 changes: 1 addition & 1 deletion docs/administration/netbox-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This will launch a customized version of [the built-in Django shell](https://doc
```
$ ./manage.py nbshell
### NetBox interactive shell (jstretch-laptop)
### Python 2.7.6 | Django 1.11.3 | NetBox 2.1.0-dev
### Python 3.5.2 | Django 2.0.8 | NetBox 2.4.3
### lsmodels() will show available models. Use help(<model>) for more info.
```

Expand Down
2 changes: 1 addition & 1 deletion docs/administration/replicating-netbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ psql -c 'create database netbox'
psql netbox < netbox.sql
```

Keep in mind that PostgreSQL user accounts and permissions are not included with the dump: You will need to create those manually if you want to fully replicate the original database (see the [installation docs](installation/1-postgresql.md)). When setting up a development instance of NetBox, it's strongly recommended to use different credentials anyway.
Keep in mind that PostgreSQL user accounts and permissions are not included with the dump: You will need to create those manually if you want to fully replicate the original database (see the [installation docs](../installation/1-postgresql.md)). When setting up a development instance of NetBox, it's strongly recommended to use different credentials anyway.

## Export the Database Schema

Expand Down
50 changes: 48 additions & 2 deletions docs/api/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The base serializer is used to represent the default view of a model. This inclu
}
```

Related objects (e.g. `ForeignKey` fields) are represented using a nested serializer. A nested serializer provides a minimal representation of an object, including only its URL and enough information to construct its name. When performing write api actions (`POST`, `PUT`, and `PATCH`), any `ForeignKey` relationships do not use the nested serializer, instead you will pass just the integer ID of the related model.
Related objects (e.g. `ForeignKey` fields) are represented using a nested serializer. A nested serializer provides a minimal representation of an object, including only its URL and enough information to construct its name. When performing write api actions (`POST`, `PUT`, and `PATCH`), any `ForeignKey` relationships do not use the nested serializer, instead you will pass just the integer ID of the related model.

When a base serializer includes one or more nested serializers, the hierarchical structure precludes it from being used for write operations. Thus, a flat representation of an object may be provided using a writable serializer. This serializer includes only raw database values and is not typically used for retrieval, except as part of the response to the creation or updating of an object.

Expand All @@ -122,6 +122,52 @@ When a base serializer includes one or more nested serializers, the hierarchical
}
```

## Brief Format

Most API endpoints support an optional "brief" format, which returns only a minimal representation of each object in the response. This is useful when you need only a list of the objects themselves without any related data, such as when populating a drop-down list in a form.

For example, the default (complete) format of an IP address looks like this:

```
GET /api/ipam/prefixes/13980/

{
"id": 13980,
"family": 4,
"prefix": "192.0.2.0/24",
"site": null,
"vrf": null,
"tenant": null,
"vlan": null,
"status": {
"value": 1,
"label": "Active"
},
"role": null,
"is_pool": false,
"description": "",
"tags": [],
"custom_fields": {},
"created": "2018-12-11",
"last_updated": "2018-12-11T16:27:55.073174-05:00"
}
```

The brief format is much more terse, but includes a link to the object's full representation:

```
GET /api/ipam/prefixes/13980/?brief=1

{
"id": 13980,
"url": "https://netbox/api/ipam/prefixes/13980/",
"family": 4,
"prefix": "192.0.2.0/24"
}
```

The brief format is supported for both lists and individual objects.

## Static Choice Fields

Some model fields, such as the `status` field in the above example, utilize static integers corresponding to static choices. The available choices can be retrieved from the read-only `_choices` endpoint within each app. A specific `model:field` tuple may optionally be specified in the URL.
Expand Down Expand Up @@ -215,7 +261,7 @@ A list of objects retrieved via the API can be filtered by passing one or more q
GET /api/ipam/prefixes/?status=1
```

The same filter can be incldued multiple times. These will effect a logical OR and return objects matching any of the given values. For example, the following will return all active and reserved prefixes:
Certain filters can be included multiple times within a single request. These will effect a logical OR and return objects matching any of the given values. For example, the following will return all active and reserved prefixes:

```
GET /api/ipam/prefixes/?status=1&status=2
Expand Down
27 changes: 25 additions & 2 deletions docs/configuration/optional-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ Setting this to True will permit only authenticated users to access any part of

---

## LOGIN_TIMEOUT

Default: 1209600 seconds (14 days)

The liftetime (in seconds) of the authentication cookie issued to a NetBox user upon login.

---

## MAINTENANCE_MODE

Default: False
Expand Down Expand Up @@ -223,6 +231,14 @@ The file path to the location where custom reports will be kept. By default, thi

---

## SESSION_FILE_PATH

Default: None

Session data is used to track authenticated users when they access NetBox. By default, NetBox stores session data in the PostgreSQL database. However, this inhibits authentication to a standby instance of NetBox without write access to the database. Alternatively, a local file path may be specified here and NetBox will store session data as files instead of using the database. Note that the user as which NetBox runs must have read and write permissions to this path.

---

## TIME_ZONE

Default: UTC
Expand All @@ -235,7 +251,7 @@ The time zone NetBox will use when dealing with dates and times. It is recommend

Default: False

Enable this option to run the webhook backend. See the docs section on the webhook backend [here](../miscellaneous/webhooks/) for more information on setup and use.
Enable this option to run the webhook backend. See the docs section on the webhook backend [here](../additional-features/webhooks/) for more information on setup and use.

---

Expand All @@ -258,7 +274,7 @@ SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # 2016-06-27 13:23

## Redis Connection Settings

[Redis](https://redis.io/) is a key-value store which functions as a very lightweight database. It is required when enabling NetBox [webhooks](../miscellaneous/webhooks/). A Redis connection is configured using a dictionary similar to the following:
[Redis](https://redis.io/) is a key-value store which functions as a very lightweight database. It is required when enabling NetBox [webhooks](../additional-features/webhooks/). A Redis connection is configured using a dictionary similar to the following:

```
REDIS = {
Expand All @@ -267,6 +283,7 @@ REDIS = {
'PASSWORD': '',
'DATABASE': 0,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
```

Expand Down Expand Up @@ -299,3 +316,9 @@ The TCP port to use when connecting to the Redis server.
Default: None

The password to use when authenticating to the Redis server (optional).

### SSL

Default: False

Use secure sockets layer to encrypt the connections to the Redis server.
2 changes: 1 addition & 1 deletion docs/core-functionality/circuits.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Circuit types are fully customizable.

A circuit may have one or two terminations, annotated as the "A" and "Z" sides of the circuit. A single-termination circuit can be used when you don't know (or care) about the far end of a circuit (for example, an Internet access circuit which connects to a transit provider). A dual-termination circuit is useful for tracking circuits which connect two sites.

Each circuit termination is tied to a site, and optionally to a specific device and interface within that site. Each termination can be assigned a separate downstream and upstream speed independent from one another. Fields are also available to track cross-connect and patch panel details.
Each circuit termination is tied to a site, and may optionally be connected via a cable to a specific device interface or pass-through port. Each termination can be assigned a separate downstream and upstream speed independent from one another. Fields are also available to track cross-connect and patch panel details.

!!! note
A circuit represents a physical link, and cannot have more than two endpoints. When modeling a multi-point topology, each leg of the topology must be defined as a discrete circuit.
Expand Down
Loading