diff options
| author | sgherdao <104869962+sgherdao@users.noreply.github.com> | 2024-02-09 01:56:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 17:56:49 -0800 |
| commit | c07e90793c839d1973a0820d24e03a0a6b30b77e (patch) | |
| tree | 419f70937b26811fc417aa15c148928d0369733f /test | |
| parent | 96a9805ecb75aac2adde7568d26b3e3b3ffc19af (diff) | |
add support for pyang (#282)
Hi,
pyang (https://github.com/mbj4668/pyang) is a YANG validator,
transformator and code generator, written in python. YANG (RFC 7950) is
a data modeling language for NETCONF (RFC 6241), developed by the IETF
NETMOD WG. This formatter provides support for Emacs yang-mode.
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/pyang.bash | 2 | ||||
| -rw-r--r-- | test/formatters/samplecode/pyang/in.yang | 10 | ||||
| -rw-r--r-- | test/formatters/samplecode/pyang/out.yang | 11 |
3 files changed, 23 insertions, 0 deletions
diff --git a/test/formatters/installers/pyang.bash b/test/formatters/installers/pyang.bash new file mode 100644 index 0000000..0eb7edb --- /dev/null +++ b/test/formatters/installers/pyang.bash @@ -0,0 +1,2 @@ +apt-get install -y python3-pip +pip install pyang diff --git a/test/formatters/samplecode/pyang/in.yang b/test/formatters/samplecode/pyang/in.yang new file mode 100644 index 0000000..8b053df --- /dev/null +++ b/test/formatters/samplecode/pyang/in.yang @@ -0,0 +1,10 @@ +module in { namespace "http://com/in/in"; + prefix + in ; + + list example { key "name"; + leaf name { +type string; +} + } +} diff --git a/test/formatters/samplecode/pyang/out.yang b/test/formatters/samplecode/pyang/out.yang new file mode 100644 index 0000000..3d5a143 --- /dev/null +++ b/test/formatters/samplecode/pyang/out.yang @@ -0,0 +1,11 @@ +module in { + namespace "http://com/in/in"; + prefix in; + + list example { + key "name"; + leaf name { + type string; + } + } +} |
