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

New Template Show Mpls interface #600

Merged
merged 23 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
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
FragmentedPacket marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 2 additions & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,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"