diff --git a/README.md b/README.md index 7dc99d3..13729ae 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ![Cisco Logo](assets/cisco.png "Cisco logo") gen-cisco ![License](https://img.shields.io/badge/License-MIT-green.svg) -![Version](https://img.shields.io/badge/version-1.2.8-blue.svg) +![Version](https://img.shields.io/badge/version-1.2.9-blue.svg) `gen-cisco` is an API and CLI to facilitate the creation of your Cisco scripts using a YAML file. This file groups a section for each protocol including the diff --git a/examples/router.yml b/examples/router.yml index 878b90d..07968c3 100644 --- a/examples/router.yml +++ b/examples/router.yml @@ -18,13 +18,11 @@ basic: description: Link to the Fa0/1 interface. # duplex: auto # speed: auto - # nat: inside activate: True - interface: S0/0/0 ip: 209.165.200.225 255.255.255.252 # duplex: auto # speed: auto - # nat: outside description: Link to the Fa0/2 interface. activate: True routes: diff --git a/gen-cisco.py b/gen-cisco.py index a46e8b4..5226c36 100755 --- a/gen-cisco.py +++ b/gen-cisco.py @@ -14,7 +14,7 @@ @click.option('--headers/--no-headers', default=True, help='Deletes headers in the generated script.') @click.option('--verbose', '-v', is_flag=True, help='Outputs the final script to the console.') @click.pass_context -@click.version_option('1.2.8', '--version') +@click.version_option('1.2.9', '--version') def cli(ctx, src, dest, override, comments, headers, verbose): """Generates Cisco scripts based on YAML files diff --git a/setup.py b/setup.py index 932f841..be2e616 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="gen-cisco", - version="1.2.8", + version="1.2.9", description="Generates Cisco scripts based on YAML files", author="Terencio Agozzino", author_email="terencio.agozzino@gmail.com", diff --git a/src/templates/router/basic/interfaces.txt b/src/templates/router/basic/interfaces.txt index ba2896c..52deb9d 100644 --- a/src/templates/router/basic/interfaces.txt +++ b/src/templates/router/basic/interfaces.txt @@ -11,9 +11,6 @@ {% if interface.speed %} speed {{ interface.speed }} {% endif %} - {% if interface.nat %} - nat {{ interface.nat }} - {% endif %} {% if interface.activate == True %} no shutdown {% endif %}