Skip to content

Commit 49fcf97

Browse files
authored
fix running commands to full update oui and protocol mappers (#672)
* fix running commands to full update oui and protocol mappers * fix encoding in mapper docs
1 parent a54042f commit 49fcf97

File tree

6 files changed

+193
-23
lines changed

6 files changed

+193
-23
lines changed

development_scripts.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
"""Developer script to generate markdown tables."""
22

3-
from jinja2 import Environment, BaseLoader, select_autoescape
4-
from netutils.utils import _JINJA2_FUNCTION_MAPPINGS
3+
from jinja2 import BaseLoader, Environment, select_autoescape
4+
55
from netutils import lib_mapper
66
from netutils.config.compliance import parser_map
7+
from netutils.utils import _JINJA2_FUNCTION_MAPPINGS
78

89
LIB_MAPPER_TEMPLATE = """| {{ header_src }} | | {{ header_dst }} |
910
| ---------- | -- | ------ |
1011
{%- for key, val in _dict|dictsort %}
11-
| {{ key }} | → | {{ val }} |
12+
| {{ key }} | → | {{ val|safe }} |
1213
{%- endfor %}
1314
"""
1415

@@ -191,6 +192,12 @@
191192
"_dict": lib_mapper.PYNTC_LIB_MAPPER_REVERSE,
192193
"_file": "docs/user/lib_mapper/pyntc_reverse.md",
193194
},
195+
"running_config_mapper": {
196+
"header_src": "NORMALIZED",
197+
"header_dst": "RUNNING_CONFIG_COMMAND",
198+
"_dict": lib_mapper.RUNNING_CONFIG_MAPPER,
199+
"_file": "docs/user/lib_mapper/running_config.md",
200+
},
194201
"scrapli": {
195202
"header_src": "SCRAPLI",
196203
"header_dst": "NORMALIZED",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| NORMALIZED | | RUNNING_CONFIG_COMMAND |
2+
| ---------- | -- | ------ |
3+
| arista_eos || show running-config |
4+
| checkpoint_gaia || clish -c "show configuration" |
5+
| cisco_ios || show running-config |
6+
| cisco_nxos || show running-config |
7+
| cisco_xr || show running-config |
8+
| juniper_junos || show configuration | display set |

docs/user/lib_overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ The intended audience is those who are programming network automation tasks with
2626
- @itdependsnetworks
2727
- @jeffkala
2828
- @qduk
29-
- @abates

0 commit comments

Comments
 (0)