-
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.
Fix Huawei Isis peer for line overflow (#1771)
Co-authored-by: lutfisan <[email protected]>
- Loading branch information
1 parent
d7607df
commit 7e7edbd
Showing
9 changed files
with
135 additions
and
4 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
ntc_templates/templates/huawei_vrp_display_mpls_te_tunnel.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,18 @@ | ||
Value SOURCE (\d+\.\d+\.\d+\.\d+) | ||
Value DESTINATION (\d+\.\d+\.\d+\.\d+) | ||
Value ID (\d+) | ||
Value IN_LABEL (\S+) | ||
Value OUT_LABEL (\S+) | ||
Value ROLE (\S+) | ||
Value NAME (\S+) | ||
|
||
Start | ||
^-+ | ||
^Ingress\s+LsrId\s+Destination\s+LSPID\s+In/OutLabel\s+R\s+Tunnel-name\s*$$ | ||
^-+ | ||
^${SOURCE}\s+${DESTINATION}\s+${ID}?\s+${IN_LABEL}/${OUT_LABEL}\s+${ROLE}\s+${NAME}\s*$$ -> Record | ||
^-+ | ||
^\s*\*\s+means | ||
^\s*\S:\s+\S+,\s+\S+:\s+\S+, | ||
^\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
22 changes: 22 additions & 0 deletions
22
tests/huawei_vrp/display_isis_peer/huawei_vrp_display_isis_peer.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,22 @@ | ||
|
||
Peer information for ISIS(1) | ||
|
||
System Id Interface Circuit Id State HoldTime Type PRI | ||
-------------------------------------------------------------------------------- | ||
RR-BD3515597G9- GE0/2/0 0000000006 Up 28s L2 -- | ||
01H | ||
RR-BD3514349G9- GE0/2/1 0000000005 Up 22s L2 -- | ||
01H | ||
|
||
Total Peer(s): 2 | ||
|
||
Peer information for ISIS(990) | ||
|
||
System Id Interface Circuit Id State HoldTime Type PRI | ||
-------------------------------------------------------------------------------- | ||
RR-BD3515597G9- GE0/2/0.1000 0000000057 Up 30s L2 -- | ||
01H* | ||
RR-BD3514349G9- GE0/2/1.1000 0000000056 Up 22s L2 -- | ||
01H* | ||
|
||
Total Peer(s): 2 |
38 changes: 38 additions & 0 deletions
38
tests/huawei_vrp/display_isis_peer/huawei_vrp_display_isis_peer.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,38 @@ | ||
--- | ||
parsed_sample: | ||
- system_id: | ||
- "RR-BD3515597G9-" | ||
- "01H" | ||
interface: "GE0/2/0" | ||
circuit_id: "0000000006" | ||
state: "Up" | ||
hold_time: "28s" | ||
type: "L2" | ||
pri: "--" | ||
- system_id: | ||
- "RR-BD3514349G9-" | ||
- "01H" | ||
interface: "GE0/2/1" | ||
circuit_id: "0000000005" | ||
state: "Up" | ||
hold_time: "22s" | ||
type: "L2" | ||
pri: "--" | ||
- system_id: | ||
- "RR-BD3515597G9-" | ||
- "01H*" | ||
interface: "GE0/2/0.1000" | ||
circuit_id: "0000000057" | ||
state: "Up" | ||
hold_time: "30s" | ||
type: "L2" | ||
pri: "--" | ||
- system_id: | ||
- "RR-BD3514349G9-" | ||
- "01H*" | ||
interface: "GE0/2/1.1000" | ||
circuit_id: "0000000056" | ||
state: "Up" | ||
hold_time: "22s" | ||
type: "L2" | ||
pri: "--" |
File renamed without changes.
6 changes: 4 additions & 2 deletions
6
...s_peer/huawei_vrpv8_display_isis_peer.yml → ...is_peer/huawei_vrp_display_isis_peer2.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
11 changes: 11 additions & 0 deletions
11
tests/huawei_vrp/display_mpls_te_tunnel/huawei_vrp_display_mpls_te_tunnel.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,11 @@ | ||
* means the LSP is detour LSP | ||
------------------------------------------------------------------------------- | ||
Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name | ||
------------------------------------------------------------------------------- | ||
10.219.220.136 10.219.220.8 29 -/2080 I Tunnel1_RR-KL2414993-01H_to_RAW-KL1956-01H | ||
10.219.220.136 10.219.220.9 22684 -/2204 I Tunnel2_RR-KL2414993-01H_to_RAW-KL1938-01H | ||
10.219.220.8 10.219.220.136 34518 2096/- E Tunnel12_RAW-KL1956-01H_to_RR-KL3453225G-01H | ||
10.219.220.8 10.219.220.136 34521 2098/- E Tunnel12_RAW-KL1956-01H_to_RR-KL3453225G-01H | ||
10.219.220.9 10.219.220.136 34510 2144/- E Tunnel12_RAW-KL1938-01H_to_RR-KL3453225G-01H | ||
------------------------------------------------------------------------------- | ||
R: Role, I: Ingress, T: Transit, E: Egress |
37 changes: 37 additions & 0 deletions
37
tests/huawei_vrp/display_mpls_te_tunnel/huawei_vrp_display_mpls_te_tunnel.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,37 @@ | ||
--- | ||
parsed_sample: | ||
- source: "10.219.220.136" | ||
destination: "10.219.220.8" | ||
id: "29" | ||
in_label: "-" | ||
out_label: "2080" | ||
role: "I" | ||
name: "Tunnel1_RR-KL2414993-01H_to_RAW-KL1956-01H" | ||
- source: "10.219.220.136" | ||
destination: "10.219.220.9" | ||
id: "22684" | ||
in_label: "-" | ||
out_label: "2204" | ||
role: "I" | ||
name: "Tunnel2_RR-KL2414993-01H_to_RAW-KL1938-01H" | ||
- source: "10.219.220.8" | ||
destination: "10.219.220.136" | ||
id: "34518" | ||
in_label: "2096" | ||
out_label: "-" | ||
role: "E" | ||
name: "Tunnel12_RAW-KL1956-01H_to_RR-KL3453225G-01H" | ||
- source: "10.219.220.8" | ||
destination: "10.219.220.136" | ||
id: "34521" | ||
in_label: "2098" | ||
out_label: "-" | ||
role: "E" | ||
name: "Tunnel12_RAW-KL1956-01H_to_RR-KL3453225G-01H" | ||
- source: "10.219.220.9" | ||
destination: "10.219.220.136" | ||
id: "34510" | ||
in_label: "2144" | ||
out_label: "-" | ||
role: "E" | ||
name: "Tunnel12_RAW-KL1938-01H_to_RR-KL3453225G-01H" |