Skip to content

Commit

Permalink
Add IOS show mpls l2transport vc template (#1477)
Browse files Browse the repository at this point in the history
Co-authored-by: pskliarenko <“[email protected]”>
  • Loading branch information
PavloSkliarenko and pskliarenko authored Jul 22, 2024
1 parent edc31a2 commit 3bf5206
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ntc_templates/templates/cisco_ios_show_mpls_l2transport_vc.textfsm
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 @@ -253,6 +253,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"

0 comments on commit 3bf5206

Please sign in to comment.