forked from dropbox/pynsot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update nsot CLI to support natural key for Interfaces/Circuits (dropb…
…ox#139) * Update nsot CLI to support natural key for Interfaces/Circuits Requires NSoT v1.2.0 - Interfaces may now be created/updated by referencing the device hostname or device ID - Circuits may now be created/updated by referencing the interfaces by natural key (slug) OR interface ID - The visual display of Networks, Interfaces, Circuits has been updated to be more compact/concise - Networks - cidr is now displayed instead of network_address/prefix_length - parent cidr is now displayed instead of parent_id - Interface - name_slug is now displayed instead of device_id/name - parent name is now displayed instead of parent_id - Circuits - interface slugs are now displayed instead of ID numbers - Added flake8 to Travis CI config * Include "(Key)" in the header for the natural key field on list views * Fix mixed tab/spaces in cmd_circuits.py
- Loading branch information
Showing
10 changed files
with
92 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
language: python | ||
cache: pip | ||
python: | ||
- "2.7" | ||
|
||
install: | ||
- pip install -r requirements-dev.txt | ||
- pip install . | ||
|
||
script: py.test -v tests/ | ||
script: | ||
- flake8 | ||
- py.test -v tests/ | ||
|
||
after_success: curl -X POST https://readthedocs.org/build/pynsot |
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
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,2 @@ | ||
[flake8] | ||
exclude = tests/*,docs |
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