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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions templates/cisco_ios_show_interfaces_description.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Value PORT (\S+)
Value STATUS (up|down|admin\s+down)
Value PROTOCOL (up|down)
Value DESCRIP (\S.*?)

Start
^Interface\s+Status\s+Protocol\s+Description\s*$$ -> Begin
^\s*$$
^. -> Error

Begin
^${PORT}\s+${STATUS}\s+${PROTOCOL}(?:\s+${DESCRIP})?\s*$$ -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ cisco_ios_show_running-config_partition_route-map.template, .*, cisco_ios, sh[[o
cisco_ios_show_capability_feature_routing.template, .*, cisco_ios, sh[[ow]] cap[[ability]] f[[eature]] r[[outing]]
cisco_ios_show_authentication_sessions.template, .*, cisco_ios, show authen[[tication]] ses[[sions]]
cisco_ios_show_ip_ospf_interface_brief.template, .*, cisco_ios, sh[[ow]] ip ospf int[[erface]]
cisco_ios_show_interfaces_description.template, .*, cisco_ios, sh[[ow]] int[[erfaces]] des[[cription]]
cisco_ios_show_ip_device_tracking_all.template, .*, cisco_ios, sh[[ow]] ip de[[vice]] t[[racking]] a[[ll]]
cisco_ios_show_environment_power_all.template, .*, cisco_ios, sh[[ow]] envi[[ronment]] p[[ower]] a[[ll]]
cisco_ios_show_interface_transceiver.template, .*, cisco_ios, sh[[ow]] int[[erface]] trans[[ceiver]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
parsed_sample:

- port: Vl1
status: admin down
protocol: down
descrip: ''
- port: Vl99
status: up
protocol: up
descrip: 10.20.99.0_Switch_mgmt_VLAN
- port: Gi0/1
status: down
protocol: down
descrip: D3 USER
- port: Gi0/2
status: down
protocol: down
descrip: D3 USER
- port: Gi0/3
status: down
protocol: down
descrip: D3 USER
- port: Gi0/4
status: down
protocol: down
descrip: D3 USER
- port: Gi0/5
status: down
protocol: down
descrip: D3 USER
- port: Gi0/6
status: down
protocol: down
descrip: D3 USER
- port: Gi0/7
status: down
protocol: down
descrip: D3 USER
- port: Gi0/8
status: up
protocol: up
descrip: MERAKI TEST AP
- port: Gi0/9
status: admin down
protocol: down
descrip: ''
- port: Gi0/10
status: up
protocol: up
descrip: UPLINK TO TULCCD3S01P
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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