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 #348

Merged
merged 7 commits into from
Jan 26, 2019
Merged

Create cisco_ios_show_interfaces_description.template #348

merged 7 commits into from
Jan 26, 2019

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(yaml.dump(parsed_data,explicit_start=True, default_flow_style=False))
- - 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

@adrydale
Copy link
Contributor Author

@jmcgill298, does this pull look good? I closed the previous pull and re-did it with the test files.

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 I added some suggestions.
Also, I forgot to mention that the templates/index file also needs to be updated to include this template. There are instructions on where to place the entry at the top of the index file and the format. Let me know if you have any questions.

jmcgill298 and others added 2 commits January 25, 2019 15:15
Co-Authored-By: adrydale <32683423+adrydale@users.noreply.github.com>
@adrydale
Copy link
Contributor Author

Thank you for the changes, @jmcgill298! I've added them and updated the index file. I tested the template again on my devices and it's working well.

@jmcgill298
Copy link
Contributor

Thanks @adrydale the index ordering was slightly off, so I fixed that and will merge.

@jmcgill298 jmcgill298 merged commit 7367340 into networktocode:master Jan 26, 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