This repository has been archived by the owner on Sep 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
79 additions
and
20 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
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,3 +1,4 @@ | ||
{% for peer in peers %} | ||
no ntp peer {{peer}} | ||
{% endfor %} | ||
ntp commit |
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,3 +1,4 @@ | ||
{% for server in servers %} | ||
no ntp server {{server}} | ||
{% endfor %} | ||
ntp commit |
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,16 @@ | ||
{%- for user_name, user_details in users.items() %} | ||
{%- if user_details -%} | ||
{%- if user_details.get('sshkeys') %} | ||
{%- for sshkey in user_details.sshkeys %} | ||
no username {{user_name}} sshkey {{ sshkey }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- if user_details.get('password') %} | ||
no username {{user_name}} password | ||
{%- endif %} | ||
{%- if user_details.get('level') %} | ||
no username {{user_name}} role priv-{{user_details.level}} | ||
{%- endif %} | ||
{%- endfor %} | ||
{%- else -%} | ||
{%- endif -%} |
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,3 +1,4 @@ | ||
{% for peer in peers %} | ||
ntp peer {{peer}} | ||
{% endfor %} | ||
ntp commit |
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,3 +1,4 @@ | ||
{% for server in servers %} | ||
ntp server {{server}} | ||
{% endfor %} | ||
ntp commit |
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,13 @@ | ||
{%- for user_name, user_details in users.items() %} | ||
{%- if user_details.get('sshkeys') %} | ||
{%- for sshkey in user_details.sshkeys %} | ||
username {{user_name}} sshkey {{ sshkey }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- if user_details.get('password') %} | ||
username {{user_name}} password 5 {{user_details.password}} | ||
{%- endif %} | ||
{%- if user_details.get('level') %} | ||
username {{user_name}} role priv-{{user_details.level}} | ||
{%- endif %} | ||
{%- endfor %} |
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 |
---|---|---|
|
@@ -4,4 +4,6 @@ pytest-cov | |
pytest-json | ||
pytest-pythonpath | ||
pylama | ||
flake8-import-order | ||
-r requirements.txt | ||
|
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,15 +1,16 @@ | ||
[pylama] | ||
linters = mccabe,pep8,pyflakes | ||
ignore = D203,C901 | ||
skip = build/*,.tox/* | ||
|
||
[pylama:pep8] | ||
max_line_length = 100 | ||
|
||
[tool:pytest] | ||
addopts = --cov=./ -vs | ||
[pytest] | ||
addopts = --cov=napalm_nxos --cov-report term-missing -vs --pylama | ||
json_report = report.json | ||
jsonapi = true | ||
|
||
[coverage:run] | ||
include = | ||
napalm_nxos/* | ||
source = napalm_nxos | ||
|
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,9 @@ | ||
[tox] | ||
envlist = py27,py34,py35 | ||
|
||
[testenv] | ||
deps = | ||
-rrequirements-dev.txt | ||
|
||
commands= | ||
py.test |