-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Canonical interfaces fix dictionary update behavior. * Fixing argument reference. * Fixing NXOS file write issue Python3 * Added mocking method for nxos * add tests for and fix canonical name * add optional arg, and re-order optional args * create extend driver docs * clean up docs, add to index * update doc strings * fix pylama * fix rev update dict * add section headers * spelling * more consitent test, fix st * Fix nxos_ssh mac table processing bug * adding optional arguments for load_replace_candidate (#508) * adding optional arguments for load_replace_candidate and load_merge_candidate * adding optional argument 'autoComplete' * adding optional argument 'autoComplete' changing failed tests * making required changes as discussed * changing the if condition * correcting the typo * Handle multiple spaces in device_id from show lldp neighbors * Add test to get_lldp_neighbors with hostname with spaces * Loop through loaded config to convert HEREDOC commands. Fixes #519 (#520) (eos) loop through loaded config to convert HEREDOC commands. Fixes #519 * Add code to build documentation for napalm-ansible (#535) * Add code to build documentation for napalm-ansible * pep8 * Change placement in documentation tree * Change formatting * Fix formatting for return values * Sort parameters alphabetically * Text changes * Add script to clone napalm-ansible repo * remove partial install (#554) * Update documentation to corrrect driver ref (#559) * [docs] Add "-c /dev/null" arguments to py.test command (#561) (#562) * Add "-c /dev/null" arguments to py.test command (#561) Before the NAPALM tests were picked up when running from RTD. * fix requirements filepaths * LLDP code with space in the device id (#549) * LLDP code with space in the device id * LLDP fixed width for device_id field
- Loading branch information
Showing
44 changed files
with
665 additions
and
229 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,4 +1,4 @@ | ||
include requirements/* | ||
include requirements* | ||
include napalm/*/templates/*.j2 | ||
include napalm/*/utils/textfsm_templates/*.tpl | ||
include napalm/junos/utils/*.yml |
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,64 @@ | ||
{{ name }} | ||
===================== | ||
|
||
{{ doc['description'][0] }} | ||
|
||
|
||
Parameters | ||
---------- | ||
|
||
.. raw:: html | ||
|
||
<table border="1" class="docutils"> | ||
<th>Parameter</th> | ||
<th>Required</th> | ||
<th>Default</th> | ||
<th>Choices</th> | ||
<th>Description</th> | ||
{% for p in doc['options']|sort %} | ||
<tr> | ||
<td>{{ p }}</td> | ||
<td>{{ doc['options'][p]['required'] }}</td> | ||
<td>N/A</td> | ||
<td>N/A</td> | ||
<td>{{ doc['options'][p]['description'][0] }}</td> | ||
</tr> | ||
{% endfor %} | ||
|
||
</table> | ||
|
||
|
||
Examples | ||
-------- | ||
|
||
.. code-block:: yaml | ||
|
||
{% for line in example_lines %} | ||
{{ line }} | ||
{% endfor %} | ||
|
||
{% if return_values %} | ||
|
||
Return | ||
------ | ||
.. raw:: html | ||
|
||
<table border="1" class="docutils"> | ||
<th>Name</th> | ||
<th>Description</th> | ||
<th>Returned</th> | ||
<th>Type</th> | ||
<th>Sample</th> | ||
{% for value in return_values %} | ||
<tr> | ||
<td>{{ value }}</td> | ||
<td>{{ return_values[value].description }}</td> | ||
<td>{{ return_values[value].returned }}</td> | ||
<td>{{ return_values[value].type }}</td> | ||
<td>{{ return_values[value].sample|replace('\n', '\\n') }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
|
||
{% 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
CWD=`pwd` | ||
MODULES_OUTPUT="$CWD/integrations/ansible/modules/source" | ||
|
||
|
||
|
||
git clone https://github.com/napalm-automation/napalm-ansible.git napalm_ansible_repo | ||
cd napalm_ansible_repo | ||
|
||
# Change to master after next napalm-ansible release | ||
git checkout develop | ||
|
||
pip install -r requirements-dev.txt | ||
pip install . | ||
py.test -c /dev/null | ||
cp module_docs/* $MODULES_OUTPUT/ | ||
|
||
cd $CWD | ||
|
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,9 @@ | ||
napalm-ansible | ||
============== | ||
|
||
Below are the ansible modules which are currently available for NAPALM | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
modules/index |
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,10 @@ | ||
modules | ||
======= | ||
|
||
Below are the ansible modules which are currently available for NAPALM | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
napalm_*/index |
Empty file.
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 @@ | ||
Integrations | ||
============ | ||
|
||
NAPALM can be integrated with automation frameworks such as Ansible or Salt. In order to use NAPALM with ansible you will need to install napalm-ansible. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
ansible/index |
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
Oops, something went wrong.