Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
Delete NAT from basic
Browse files Browse the repository at this point in the history
  • Loading branch information
rememberYou committed May 14, 2018
1 parent b5a1a6f commit 5659e74
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions examples/router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion gen-cisco.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
Expand Down
3 changes: 0 additions & 3 deletions src/templates/router/basic/interfaces.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 5659e74

Please sign in to comment.