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

CiscoIOS 'show mpls l2transport vc' template #1477

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
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Value INTERFACE ([a-zA-Z0-9\-/.]+)
Value LOCAL_CIRCUIT (.*)
Value DEST_ADDRESS (\S+)
Value VC_ID (\d+)
Value STATUS (.*)

Start
^\s*Local\s+intf\s+Local\s+circuit\s+Dest\s+address\s+VC\s+ID\s+Status\s*$$ -> L2transportTable
^\s*$$
^. -> Error

L2transportTable
^\s*-+(\s+-+)*\s*$$
^\s*${INTERFACE}\s+${LOCAL_CIRCUIT}\s+${DEST_ADDRESS}\s+${VC_ID}\s+${STATUS}\s*$$ -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ cisco_ios_show_cdp_neighbors_detail.textfsm, .*, cisco_ios, sh[[ow]] c[[dp]] nei
cisco_ios_show_etherchannel_summary.textfsm, .*, cisco_ios, sh[[ow]] etherchann[[el]] summ[[ary]]
cisco_ios_show_ipv6_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ipv[[6]] i[[nterface]] b[[rief]]
cisco_ios_show_ip_nat_translations.textfsm, .*, cisco_ios, sh[[ow]] ip nat translation[[s]]
cisco_ios_show_mpls_l2transport_vc.textfsm, .*, cisco_ios, sh[[ow]] m[[pls]] l2[[transport]] v[[c]]
cisco_ios_show_ip_eigrp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] nei[[ghbors]]
cisco_ios_show_ip_flow_toptalkers.textfsm, .*, cisco_ios, sh[[ow]] ip fl[[ow]] top[[-talkers]]
cisco_ios_show_ip_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ip int[[erface]] br[[ief]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Local intf Local circuit Dest address VC ID Status
------------- ------------------ --------------- ---------- ----------
Se5/0 FR DLCI 55 10.0.0.1 55 UP
AT4/0 ATM AAL5 0/100 10.0.0.1 100 UP
AT4/0.300 ATM AAL5 0/300 10.0.0.1 300 UP
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
parsed_sample:
- dest_address: "10.0.0.1"
interface: "Se5/0"
local_circuit: "FR DLCI 55 "
status: "UP"
vc_id: "55"
- dest_address: "10.0.0.1"
interface: "AT4/0"
local_circuit: "ATM AAL5 0/100 "
status: "UP"
vc_id: "100"
- dest_address: "10.0.0.1"
interface: "AT4/0.300"
local_circuit: "ATM AAL5 0/300 "
status: "UP"
vc_id: "300"
Loading