-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1575 from digitalocean/develop
Release v2.2.0
- Loading branch information
Showing
154 changed files
with
6,319 additions
and
1,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
- DOCKER_TAG=$TRAVIS_TAG | ||
|
||
- postgresql | ||
addons: | ||
postgresql: "9.4" | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
install: | ||
- pip install -r requirements.txt | ||
- pip install pep8 | ||
before_script: | ||
- psql --version | ||
- psql -U postgres -c 'SELECT version();' | ||
script: | ||
- ./scripts/cibuild.sh | ||
after_success: | ||
- if [ ! -z "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | ||
./scripts/docker-build.sh; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
NetBox supports the definition of virtual machines arranged in clusters. A cluster can optionally have physical host devices associated with it. | ||
|
||
# Clusters | ||
|
||
A cluster is a logical grouping of physical resources within which virtual machines run. A cluster must be assigned a type, and may optionally be assigned an organizational group. | ||
|
||
Physical devices (from NetBox's DCIM component) may be associated with clusters as hosts. This allows users to track on which host(s) a particular VM may reside. However, NetBox does not support pinning a specific VM within a cluster to a particular host device. | ||
|
||
### Cluster Types | ||
|
||
A cluster type represents a technology or mechanism by which a cluster is formed. For example, you might create a cluster type named "VMware vSphere" for a locally hosted cluster or "DigitalOcean NYC3" for one hosted by a cloud provider. | ||
|
||
### Cluster Groups | ||
|
||
Cluster groups may be created for the purpose of organizing clusters. | ||
|
||
--- | ||
|
||
# Virtual Machines | ||
|
||
A virtual machine represents a virtual compute instance hosted within a cluster. Each VM must be associated with exactly one cluster. | ||
|
||
Like devices, each VM can have interfaces created on it. These behave similarly to device interfaces, and can be assigned IP addresses, however given their virtual nature they cannot be connected to other interfaces. VMs can also be assigned layer four services. Unlike physical devices, VMs cannot be assigned console or power ports, or device bays. | ||
|
||
The following resources can be defined for each VM: | ||
|
||
* vCPU count | ||
* Memory (MB) | ||
* Disk space (GB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Utility Views | ||
|
||
Utility views are reusable views that handle common CRUD tasks, such as listing and updating objects. Some views operate on individual objects, whereas others (referred to as "bulk" views) operate on multiple objects at once. | ||
|
||
## Individual Views | ||
|
||
### ObjectListView | ||
|
||
Generates a paginated table of objects from a given queryset, which may optionally be filtered. | ||
|
||
### ObjectEditView | ||
|
||
Updates an object identified by a primary key (PK) or slug. If no existing object is specified, a new object will be created. | ||
|
||
### ObjectDeleteView | ||
|
||
Deletes an object. The user is redirected to a confirmation page before the deletion is executed. | ||
|
||
## Bulk Views | ||
|
||
### BulkCreateView | ||
|
||
Creates multiple objects at once based on a given pattern. Currently used only for IP addresses. | ||
|
||
### BulkImportView | ||
|
||
Accepts CSV-formatted data and creates a new object for each line. Creation is all-or-none. | ||
|
||
### BulkEditView | ||
|
||
Applies changes to multiple objects at once in a two-step operation. First, the list of PKs for selected objects is POSTed and an edit form is presented to the user. On submission of that form, the specified changes are made to all selected objects. | ||
|
||
### BulkDeleteView | ||
|
||
Deletes multiple objects. The user selects the objects to be deleted and confirms the deletion. | ||
|
||
## Component Views | ||
|
||
### ComponentCreateView | ||
|
||
Create one or more component objects beloning to a parent object (e.g. interfaces attached to a device). | ||
|
||
### ComponentEditView | ||
|
||
A subclass of `ObjectEditView`: Updates an individual component object. | ||
|
||
### ComponentDeleteView | ||
|
||
A subclass of `ObjectDeleteView`: Deletes an individual component object. | ||
|
||
### BulkComponentCreateView | ||
|
||
Create a set of components objects for each of a selected set of parent objects. This view can be used e.g. to create multiple interfaces on multiple devices at once. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.