-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IOS show mpls l2transport vc template (#1477)
Co-authored-by: pskliarenko <“[email protected]”>
- Loading branch information
1 parent
edc31a2
commit 3bf5206
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ntc_templates/templates/cisco_ios_show_mpls_l2transport_vc.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
17 changes: 17 additions & 0 deletions
17
tests/cisco_ios/show_mpls_l2transport_vc/cisco_ios_show_mpls_l2transport_vc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |