This repository has been archived by the owner on May 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
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 #132 from napalm-automation/develop
0.1.0
- Loading branch information
Showing
1,823 changed files
with
1,775,681 additions
and
548,180 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This is an example .flake8 config, used when developing *Black* itself. | ||
# Keep in sync with setup.cfg which is used for source packages. | ||
|
||
[flake8] | ||
ignore = E266, E501, W503 | ||
max-line-length = 80 | ||
max-complexity = 15 | ||
select = B,C,E,F,W,T4,B9 |
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,6 +1,7 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
.pytest_cache/ | ||
|
||
.ipynb_checkpoints | ||
|
||
|
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,6 +1,6 @@ | ||
[![PyPI](https://img.shields.io/pypi/v/napalm-yang.svg)](https://pypi.python.org/pypi/napalm-yang) [![PyPI](https://img.shields.io/pypi/dm/napalm-yang.svg)](https://pypi.python.org/pypi/napalm-yang) [![Build Status](https://travis-ci.org/napalm-automation/napalm-yang.svg?branch=master)](https://travis-ci.org/napalm-automation/napalm-yang) [![Coverage Status](https://coveralls.io/repos/github/napalm-automation/napalm-yang/badge.svg?branch=develop)](https://coveralls.io/github/napalm-automation/napalm-yang?branch=develop) | ||
[![PyPI](https://img.shields.io/pypi/v/napalm-yang.svg)](https://pypi.python.org/pypi/napalm-yang) [![Build Status](https://travis-ci.org/napalm-automation/napalm-yang.svg?branch=master)](https://travis-ci.org/napalm-automation/napalm-yang) [![Coverage Status](https://coveralls.io/repos/github/napalm-automation/napalm-yang/badge.svg?branch=develop)](https://coveralls.io/github/napalm-automation/napalm-yang?branch=develop) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) | ||
|
||
napalm-yang | ||
=========== | ||
|
||
Visit [RTD](https://napalm.readthedocs.io/en/latest/yang.html) for the documentation. | ||
Visit [RTD](https://napalm-yang.readthedocs.io/en/latest/) for the documentation. |
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,62 @@ | ||
.. _examples_leaf: | ||
|
||
Examples - leaf | ||
=============== | ||
|
||
{% for e in examples %} | ||
{{ e.example.documentation.title }} | ||
{{ "-" * e.example.documentation.title|length }} | ||
|
||
{{ e.example.documentation.summary }} | ||
|
||
Original data | ||
_____________ | ||
|
||
.. code:: | ||
|
||
{{ e.mocked|indent }} | ||
|
||
{{ e.example.documentation.data|default("") }} | ||
|
||
Parser rule | ||
___________ | ||
|
||
.. code-block:: yaml | ||
|
||
{{ e.example.rule|to_yaml|indent }} | ||
|
||
{{ e.example.documentation.rule|default("") }} | ||
|
||
Result | ||
______ | ||
|
||
{{ e.example.documentation.result|default("") }} | ||
|
||
{% for case in e.example.data %} | ||
|
||
Example {{loop.index}} | ||
^^^^^^^^^^ | ||
|
||
.. code-block:: yaml | ||
|
||
{{ case|to_yaml|indent }} | ||
|
||
.. raw:: html | ||
|
||
<div><table border="1" class="docutils"> | ||
<tr> | ||
<th class="head">block</th> | ||
<th class="head">value</th> | ||
</tr> | ||
<tbody> | ||
{% for r in e.example.expected[loop.index0] %} | ||
<tr> | ||
<td style="vertical-align: top;">{{ e.example.blocks[loop.index0]|escape }}</pre></td> | ||
<td style="vertical-align: top;">{{ r }}</pre></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table></div> | ||
|
||
{% endfor %} | ||
{% 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.