Skip to content

Commit

Permalink
updated platform names for N2G templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulyalin committed Dec 31, 2021
1 parent 246c292 commit 941774f
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 354 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="ttp_templates",
version="0.1.2",
version="0.1.3",
author="Denis Mulyalin",
author_email="d.mulyalin@gmail.com",
description="Template Text Parser Templates collections",
Expand Down
2 changes: 1 addition & 1 deletion test/test_n2g_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_N2G_ospf_lsdb_Cisco_IOSXR():
data1 = f.read()
with open("./mock_data/cisco_xr_show_ip_ospf_database_router_external_summary_router-2.txt", "r") as f:
data2 = f.read()
template = get_template(path="misc/N2G/cli_ospf_data/Cisco_IOSXR.txt")
template = get_template(path="misc/N2G/cli_ospf_data/cisco_xr.txt")
# print(template)
parser = ttp(template=template)
parser.add_input(data1)
Expand Down
273 changes: 0 additions & 273 deletions ttp_templates.egg-info/PKG-INFO

This file was deleted.

57 changes: 0 additions & 57 deletions ttp_templates.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion ttp_templates.egg-info/dependency_links.txt

This file was deleted.

1 change: 0 additions & 1 deletion ttp_templates.egg-info/requires.txt

This file was deleted.

1 change: 0 additions & 1 deletion ttp_templates.egg-info/top_level.txt

This file was deleted.

2 changes: 1 addition & 1 deletion ttp_templates/misc/N2G/cli_ip_data/A10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Template produces this dictionary:
'subnet'}}}}}
</doc>

<template name="A10" results="per_template">
<template name="a10" results="per_template">
<vars>local_hostname="gethostname"</vars>

<!-- Interfaces configuration group -->
Expand Down
4 changes: 2 additions & 2 deletions ttp_templates/misc/N2G/cli_ip_data/Cisco_IOS.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<doc>
Template produces this dictionary:
{'Cisco_IOS': {'switch_1': {'interfaces': {'SVI123': {'arp': [{'age': '-',
{'cisco_ios': {'switch_1': {'interfaces': {'SVI123': {'arp': [{'age': '-',
'ip': '10.123.111.1',
'mac': 'd094.6643.1111',
'type': 'ARPA'}],
Expand Down Expand Up @@ -42,7 +42,7 @@ Template produces this dictionary:
'subnet'}}}}}
</doc>

<template name="Cisco_IOS" results="per_template">
<template name="cisco_ios" results="per_template">
<vars>local_hostname="gethostname"</vars>

<!-- Interfaces configuration group -->
Expand Down
4 changes: 2 additions & 2 deletions ttp_templates/misc/N2G/cli_ip_data/Cisco_NXOS.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<doc>
Template produces this dictionary:
{'Cisco_NXOS': {'switch_1': {'interfaces': {'SVI123': {'arp': [{'age': '-',
{'cisco_nxos': {'switch_1': {'interfaces': {'SVI123': {'arp': [{'age': '-',
'ip': '10.123.111.1',
'mac': 'd094.6643.1111',
'type': 'ARPA'}],
Expand Down Expand Up @@ -42,7 +42,7 @@ Template produces this dictionary:
'subnet'}}}}}
</doc>

<template name="Cisco_NXOS" results="per_template">
<template name="cisco_nxos" results="per_template">
<vars>local_hostname="gethostname"</vars>

<!-- Interfaces configuration group -->
Expand Down
Loading

0 comments on commit 941774f

Please sign in to comment.