Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create cisco_ios_show_interfaces_description.template #347

Closed
wants to merge 2 commits into from
Closed

Create cisco_ios_show_interfaces_description.template #347

wants to merge 2 commits into from

Conversation

adrydale
Copy link
Contributor

ISSUE TYPE
  • New Template Pull Request
COMPONENT

Add new template for "show interfaces description" on Cisco IOS devices

SUMMARY

No template for "show interfaces description" currently exists.

tulqtcdskd4s04p#show interfaces description
Interface                      Status         Protocol Description
Vl1                            admin down     down     
Vl99                           up             up       10.20.99.0_Switch_mgmt_VLAN
Gi0/1                          down           down     D3 USER
Gi0/2                          down           down     D3 USER
Gi0/3                          down           down     D3 USER
Gi0/4                          down           down     D3 USER
Gi0/5                          down           down     D3 USER
Gi0/6                          down           down     D3 USER
Gi0/7                          down           down     D3 USER
Gi0/8                          up             up       MERAKI TEST AP
Gi0/9                          admin down     down     
Gi0/10                         up             up       UPLINK TO TULCCD3S01P
tulqtcdskd4s04p#
>>> print(json.dumps(parsed_data,indent=2))
[
  [
    "Vl1",
    "admin down",
    "down",
    " "
  ],
  [
    "Vl99",
    "up",
    "up",
    "10.20.99.0_Switch_mgmt_VLAN"
  ],
  [
    "Gi0/1",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/2",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/3",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/4",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/5",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/6",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/7",
    "down",
    "down",
    "D3 USER"
  ],
  [
    "Gi0/8",
    "up",
    "up",
    "MERAKI TEST AP"
  ],
  [
    "Gi0/9",
    "admin down",
    "down",
    " "
  ],
  [
    "Gi0/10",
    "up",
    "up",
    "UPLINK TO TULCCD3S01P"
  ]
]

Copy link
Contributor

@jmcgill298 jmcgill298 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrydale a couple of updates before we can merge this.

  1. All templates need test files to ensure templates continue to work as expected. See the tests/ directory for examples.

  2. All new templates require each state to end with . -> Error in order to raise an error if a line is not parsed. This also means that each line will need to match a regex in the template.

@adrydale
Copy link
Contributor Author

Closing this request and replacing it with #348

@adrydale adrydale closed this Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants