Skip to content

Commit

Permalink
New Template: cisco_show_mpls_interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FragmentedPacket authored Mar 5, 2020
1 parent 9779a93 commit 7fef2ff
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 1 deletion.
13 changes: 13 additions & 0 deletions templates/cisco_ios_show_mpls_interfaces.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Value Required INTERFACE (\S+)
Value MPLS_IP (\w+)
Value PROTOCOL (\w+)
Value TUNNEL (\w+)
Value BGP (\w+)
Value STATIC (\w+)
Value OPERATIONAL (\w+)

Start
^Interface\s+IP\s+Tunnel\s+BGP\s+Static\s+Operational$$
^${INTERFACE}\s+${MPLS_IP}\s+\(${PROTOCOL}\)\s+${TUNNEL}\s+${BGP}\s+${STATIC}\s+${OPERATIONAL}\s*$$ -> Record
^\s*$$
^. -> Error
3 changes: 2 additions & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ cisco_ios_show_ip_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ip int[[erfac
cisco_ios_show_interfaces_status.textfsm, .*, cisco_ios, sh[[ow]] int[[erfaces]] st[[atus]]
cisco_ios_show_ip_eigrp_topology.textfsm, .*, cisco_ios, sh[[ow]] ip eigrp top[[ology]]
cisco_ios_show_ip_source_binding.textfsm, .*, cisco_ios, sh[[ow]] ip sou[[rce]] b[[inding]]
cisco_ios_show_mac-address-table.textfsm, .*, cisco_ios, sh[[ow]] m[[ac-address-table]]
cisco_ios_show_mac-address-table.textfsm, .*, cisco_ios, sh[[ow]] mac[[-address-table]]
cisco_ios_show_ip_bgp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp nei[[ghbors]]
cisco_ios_show_ip_ospf_database.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]]
cisco_ios_show_ip_ospf_neighbor.textfsm, .*, cisco_ios, sh[[ow]] ip ospf nei[[ghbor]]
cisco_ios_show_ip_access-lists.textfsm, .*, cisco_ios, sh[[ow]] ip acce[[ss-lists]]
cisco_ios_show_mpls_interfaces.textfsm, .*, cisco_ios, sh[[ow]] mpls interfa[[ces]]
cisco_ios_show_power_available.textfsm, .*, cisco_ios, sh[[ow]] pow[[er]] a[[vailable]]
cisco_ios_show_ip_bgp_summary.textfsm, .*, cisco_ios, sh[[ow]] ip bgp sum[[mary]]
cisco_ios_show_ip_prefix-list.textfsm, .*, cisco_ios, sh[[ow]] ip pre[[fix-list]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Interface IP Tunnel BGP Static Operational
TenGigabitEthernet1/1 Yes (ldp) No No No Yes
TenGigabitEthernet1/5 Yes (ldp) No No No Yes
TenGigabitEthernet1/9 Yes (ldp) No No No Yes
TenGigabitEthernet1/11 Yes (ldp) No No No Yes
TenGigabitEthernet1/13 Yes (ldp) No No No Yes
TenGigabitEthernet1/15 Yes (ldp) No No No Yes
Vlan101 Yes (ldp) No No No Yes
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
parsed_sample:
- "interface": "TenGigabitEthernet1/1"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"
- "interface": "TenGigabitEthernet1/5"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"
- "interface": "TenGigabitEthernet1/9"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"
- "interface": "TenGigabitEthernet1/11"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"
- "interface": "TenGigabitEthernet1/13"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"
- "interface": "TenGigabitEthernet1/15"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"
- "interface": "Vlan101"
"mpls_ip": "Yes"
"protocol": "ldp"
"tunnel": "No"
"bgp": "No"
"static": "No"
"operational": "Yes"

0 comments on commit 7fef2ff

Please sign in to comment.