-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Ericsson IPOS router (#1265)
Co-authored-by: lutfisan <[email protected]>
- Loading branch information
1 parent
9de1e09
commit 07a2709
Showing
15 changed files
with
410 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Value Required HOST (\d+\.\d+\.\d+\.\d+) | ||
Value Required MAC (\S+) | ||
Value Required TTL (\S+) | ||
Value Required TYPE (\S+) | ||
Value Required CIRCUIT (\S+\s+\S+\s+\d+|\S+) | ||
Value Filldown CONTEXT (\S+) | ||
Value Filldown CONTEXT_ID (\S+) | ||
|
||
Start | ||
^Context\s+:${CONTEXT}\s+Context\s+id\s+:\s+${CONTEXT_ID} | ||
^-+ | ||
^Total\s+number\s+of\s+arp\s+entries\s+in\s+cache:\s+\d+ | ||
^\s+Resolved\s+entry\s+:\s+\d+ | ||
^\s+Incomplete\s+entry\s+:\s+\d+ | ||
^Host\s+Hardware\s+address\s+Ttl\s+Type\s+Circuit | ||
^${HOST}\s+${MAC}\s+${TTL}\s+${TYPE}\s+${CIRCUIT} -> Record | ||
^Showing\s+ARP\s+entries\s+in\s+RP\s+OS\s+kernel: | ||
^Host\s+Hardware\s+address\s+Flags\s+Type | ||
^. -> Error |
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/ericsson_ipos_show_isis_adjacency.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,15 @@ | ||
Value SYSTEM_ID ((\d+.\d+.\d+)|\S+) | ||
Value INTERFACE (\S+) | ||
Value L (\S+) | ||
Value MT (\S+) | ||
Value STAT (\S+) | ||
Value HOLD (\d+) | ||
Value SNPA ((\d+.\d+.\d+)|\S+) | ||
Value UPTIME (\S+) | ||
|
||
Start | ||
^IS-IS\s+Adjacenc\S+\s+for\s+tag\s+\S+: | ||
^SystemId\s+Interface\s+L\s+MT\s+Stat\s+Hold\s+SNPA\s+Uptime | ||
^${SYSTEM_ID}\s+${INTERFACE}\s+${L}\s+${MT}\s+${STAT}\s+${HOLD}\s+${SNPA}\s+${UPTIME} -> Record | ||
^Total\s+IS-IS\s+Adjacenc\S+:\s+\d+ | ||
^. -> 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Value VERSION (\S[^\[]+) | ||
Value UPTIME (\d+\s+\S+\s+\d+\s+\S+\s+\d+\s+\S+) | ||
|
||
Start | ||
^Ericsson\s+IPOS\s+Version\s+IPOS-v${VERSION}-Release | ||
^.+Up\s+Time\s+-\s+${UPTIME} |
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
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,13 @@ | ||
Total number of arp entries in cache: 8 | ||
Resolved entry : 8 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.49 98:a4:04:80:2d:1a 2422 ARPA 1/26 | ||
10.10.10.50 98:a4:04:80:31:9a - ARPA 1/26 | ||
10.10.10.65 40:ce:24:a3:1e:8d 3582 ARPA 1/11 | ||
10.10.10.66 98:a4:04:80:31:8b - ARPA 1/11 | ||
10.10.10.213 98:a4:04:80:31:8c - ARPA 1/12 | ||
10.10.10.214 70:7d:b9:2a:67:0c 1425 ARPA 1/12 | ||
10.10.10.70 98:a4:04:80:31:99 - ARPA 1/25 | ||
10.10.10.71 84:18:88:11:f1:a4 1347 ARPA 1/25 |
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,58 @@ | ||
--- | ||
parsed_sample: | ||
- host: "10.10.10.49" | ||
mac: "98:a4:04:80:2d:1a" | ||
ttl: "2422" | ||
type: "ARPA" | ||
circuit: "1/26" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.50" | ||
mac: "98:a4:04:80:31:9a" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/26" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.65" | ||
mac: "40:ce:24:a3:1e:8d" | ||
ttl: "3582" | ||
type: "ARPA" | ||
circuit: "1/11" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.66" | ||
mac: "98:a4:04:80:31:8b" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/11" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.213" | ||
mac: "98:a4:04:80:31:8c" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/12" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.214" | ||
mac: "70:7d:b9:2a:67:0c" | ||
ttl: "1425" | ||
type: "ARPA" | ||
circuit: "1/12" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.70" | ||
mac: "98:a4:04:80:31:99" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/25" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.71" | ||
mac: "84:18:88:11:f1:a4" | ||
ttl: "1347" | ||
type: "ARPA" | ||
circuit: "1/25" | ||
context: "" | ||
context_id: "" |
71 changes: 71 additions & 0 deletions
71
tests/ericsson_ipos/show_arp/ericsson_ipos_show_arp_all-context.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,71 @@ | ||
Context :local Context id : 0x40080001 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 4 | ||
Resolved entry : 4 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.224 98:a4:04:a2:d8:6a 1380 ARPA 1/9 | ||
10.10.10.225 98:a4:04:a2:dc:e9 - ARPA 1/9 | ||
10.10.10.226 98:a4:04:a2:dc:ea - ARPA 1/10 | ||
10.10.10.227 f8:0f:6f:77:eb:0c 1593 ARPA 1/10 | ||
|
||
Context :Abis_IP Context id : 0x40080002 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 2 | ||
Resolved entry : 2 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.33 98:a4:04:a2:dc:e5 - ARPA 1/5 vlan-id 211 | ||
10.10.10.34 34:00:a3:4c:7e:2c 3502 ARPA 1/5 vlan-id 211 | ||
|
||
Context :Inband-RTN Context id : 0x40080003 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 2 | ||
Resolved entry : 2 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.173 ec:38:8f:6f:91:68 3197 ARPA 1/5 vlan-id 3976 | ||
10.10.10.174 98:a4:04:a2:dc:e5 - ARPA 1/5 vlan-id 3976 | ||
|
||
Context :IuB_UP Context id : 0x40080004 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 2 | ||
Resolved entry : 2 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.97 98:a4:04:a2:dc:e5 - ARPA 1/5 vlan-id 311 | ||
10.10.10.98 34:00:a3:4c:7e:2c 1730 ARPA 1/5 vlan-id 311 | ||
|
||
Context :LTE-S1X2 Context id : 0x40080005 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 2 | ||
Resolved entry : 2 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.161 98:a4:04:a2:dc:e5 - ARPA 1/5 vlan-id 411 | ||
10.10.10.162 34:00:a3:4c:7e:2c 1259 ARPA 1/5 vlan-id 411 | ||
|
||
Context :OM-HWI Context id : 0x40080006 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 2 | ||
Resolved entry : 2 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.225 98:a4:04:a2:dc:e5 - ARPA 1/5 vlan-id 1051 | ||
10.10.10.226 34:00:a3:4c:7e:2c 249 ARPA 1/5 vlan-id 1051 | ||
|
||
Context :OM-Power Context id : 0x40080007 | ||
------------------------------------------------------------------ | ||
Total number of arp entries in cache: 2 | ||
Resolved entry : 2 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.161 98:a4:04:a2:dc:e5 - ARPA 1/5 vlan-id 3911 | ||
10.10.10.162 00:20:85:ef:bb:aa 2657 ARPA 1/5 vlan-id 3911 |
114 changes: 114 additions & 0 deletions
114
tests/ericsson_ipos/show_arp/ericsson_ipos_show_arp_all-context.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,114 @@ | ||
--- | ||
parsed_sample: | ||
- host: "10.10.10.224" | ||
mac: "98:a4:04:a2:d8:6a" | ||
ttl: "1380" | ||
type: "ARPA" | ||
circuit: "1/9" | ||
context: "local" | ||
context_id: "0x40080001" | ||
- host: "10.10.10.225" | ||
mac: "98:a4:04:a2:dc:e9" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/9" | ||
context: "local" | ||
context_id: "0x40080001" | ||
- host: "10.10.10.226" | ||
mac: "98:a4:04:a2:dc:ea" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/10" | ||
context: "local" | ||
context_id: "0x40080001" | ||
- host: "10.10.10.227" | ||
mac: "f8:0f:6f:77:eb:0c" | ||
ttl: "1593" | ||
type: "ARPA" | ||
circuit: "1/10" | ||
context: "local" | ||
context_id: "0x40080001" | ||
- host: "10.10.10.33" | ||
mac: "98:a4:04:a2:dc:e5" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 211" | ||
context: "Abis_IP" | ||
context_id: "0x40080002" | ||
- host: "10.10.10.34" | ||
mac: "34:00:a3:4c:7e:2c" | ||
ttl: "3502" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 211" | ||
context: "Abis_IP" | ||
context_id: "0x40080002" | ||
- host: "10.10.10.173" | ||
mac: "ec:38:8f:6f:91:68" | ||
ttl: "3197" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 3976" | ||
context: "Inband-RTN" | ||
context_id: "0x40080003" | ||
- host: "10.10.10.174" | ||
mac: "98:a4:04:a2:dc:e5" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 3976" | ||
context: "Inband-RTN" | ||
context_id: "0x40080003" | ||
- host: "10.10.10.97" | ||
mac: "98:a4:04:a2:dc:e5" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 311" | ||
context: "IuB_UP" | ||
context_id: "0x40080004" | ||
- host: "10.10.10.98" | ||
mac: "34:00:a3:4c:7e:2c" | ||
ttl: "1730" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 311" | ||
context: "IuB_UP" | ||
context_id: "0x40080004" | ||
- host: "10.10.10.161" | ||
mac: "98:a4:04:a2:dc:e5" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 411" | ||
context: "LTE-S1X2" | ||
context_id: "0x40080005" | ||
- host: "10.10.10.162" | ||
mac: "34:00:a3:4c:7e:2c" | ||
ttl: "1259" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 411" | ||
context: "LTE-S1X2" | ||
context_id: "0x40080005" | ||
- host: "10.10.10.225" | ||
mac: "98:a4:04:a2:dc:e5" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 1051" | ||
context: "OM-HWI" | ||
context_id: "0x40080006" | ||
- host: "10.10.10.226" | ||
mac: "34:00:a3:4c:7e:2c" | ||
ttl: "249" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 1051" | ||
context: "OM-HWI" | ||
context_id: "0x40080006" | ||
- host: "10.10.10.161" | ||
mac: "98:a4:04:a2:dc:e5" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 3911" | ||
context: "OM-Power" | ||
context_id: "0x40080007" | ||
- host: "10.10.10.162" | ||
mac: "00:20:85:ef:bb:aa" | ||
ttl: "2657" | ||
type: "ARPA" | ||
circuit: "1/5 vlan-id 3911" | ||
context: "OM-Power" | ||
context_id: "0x40080007" |
12 changes: 12 additions & 0 deletions
12
tests/ericsson_ipos/show_arp/ericsson_ipos_show_arp_all.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,12 @@ | ||
Total number of arp entries in cache: 4 | ||
Resolved entry : 4 | ||
Incomplete entry : 0 | ||
|
||
Host Hardware address Ttl Type Circuit | ||
10.10.10.224 98:a4:04:a2:d8:6a 919 ARPA 1/9 | ||
10.10.10.225 98:a4:04:a2:dc:e9 - ARPA 1/9 | ||
10.10.10.226 98:a4:04:a2:dc:ea - ARPA 1/10 | ||
10.10.10.227 f8:0f:6f:77:eb:0c 1132 ARPA 1/10 | ||
|
||
Showing ARP entries in RP OS kernel: | ||
Host Hardware address Flags Type |
30 changes: 30 additions & 0 deletions
30
tests/ericsson_ipos/show_arp/ericsson_ipos_show_arp_all.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,30 @@ | ||
--- | ||
parsed_sample: | ||
- host: "10.10.10.224" | ||
mac: "98:a4:04:a2:d8:6a" | ||
ttl: "919" | ||
type: "ARPA" | ||
circuit: "1/9" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.225" | ||
mac: "98:a4:04:a2:dc:e9" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/9" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.226" | ||
mac: "98:a4:04:a2:dc:ea" | ||
ttl: "-" | ||
type: "ARPA" | ||
circuit: "1/10" | ||
context: "" | ||
context_id: "" | ||
- host: "10.10.10.227" | ||
mac: "f8:0f:6f:77:eb:0c" | ||
ttl: "1132" | ||
type: "ARPA" | ||
circuit: "1/10" | ||
context: "" | ||
context_id: "" |
8 changes: 8 additions & 0 deletions
8
tests/ericsson_ipos/show_isis_adjacency/ericsson_ipos_show_isis_adjacency.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,8 @@ | ||
IS-IS Adjacenc(ies) for tag XL: | ||
SystemId Interface L MT Stat Hold SNPA Uptime | ||
MA-BJC547-01 Virtual_Interface_ 2p U Up 29 41de.24a3.1e8d 04d20h01 | ||
MA-BMCI75-01 Virtual_Interface_ 2p U Up 22 7d7e.b92a.670c 04d20h01 | ||
C-BJAHY-01 Virtual_Interface_ 1p U Up 22 801a.8811.f1a4 04d20h01 | ||
0102.1905.0009 Virtual_Interface_ 3p U Up 23 9aac.0480.2d1a 04d20h01 | ||
|
||
Total IS-IS Adjacenc(ies): 4 |
Oops, something went wrong.